Class RedisLookupBolt

    • Constructor Detail

      • RedisLookupBolt

        public RedisLookupBolt​(JedisPoolConfig config,
                               RedisLookupMapper lookupMapper)
        Constructor for single Redis environment (JedisPool).
        Parameters:
        config - configuration for initializing JedisPool
        lookupMapper - mapper containing which datatype, query key, output key that Bolt uses
      • RedisLookupBolt

        public RedisLookupBolt​(JedisClusterConfig config,
                               RedisLookupMapper lookupMapper)
        Constructor for Redis Cluster environment (JedisCluster).
        Parameters:
        config - configuration for initializing JedisCluster
        lookupMapper - mapper containing which datatype, query key, output key that Bolt uses
    • Method Detail

      • declareOutputFields

        public void declareOutputFields​(OutputFieldsDeclarer declarer)
        Declare the output schema for all the streams of this topology.
        Parameters:
        declarer - this is used to declare output stream ids, output fields, and whether or not each output stream is a direct stream