public class RedisStoreBolt extends AbstractRedisBolt
collector
Constructor and Description |
---|
RedisStoreBolt(JedisClusterConfig config,
RedisStoreMapper storeMapper)
Constructor for Redis Cluster environment (JedisCluster)
|
RedisStoreBolt(JedisPoolConfig config,
RedisStoreMapper storeMapper)
Constructor for single Redis environment (JedisPool)
|
Modifier and Type | Method and Description |
---|---|
void |
declareOutputFields(OutputFieldsDeclarer declarer) |
void |
execute(Tuple input) |
getInstance, prepare, returnInstance
cleanup
getComponentConfiguration
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getComponentConfiguration
public RedisStoreBolt(JedisPoolConfig config, RedisStoreMapper storeMapper)
config
- configuration for initializing JedisPoolstoreMapper
- mapper containing which datatype, storing value's key that Bolt usespublic RedisStoreBolt(JedisClusterConfig config, RedisStoreMapper storeMapper)
config
- configuration for initializing JedisClusterstoreMapper
- mapper containing which datatype, storing value's key that Bolt usespublic void execute(Tuple input)
public void declareOutputFields(OutputFieldsDeclarer declarer)
Copyright © 2016 The Apache Software Foundation. All Rights Reserved.