public class RedisStoreBolt extends AbstractRedisBolt
Basic bolt for writing to Redis
Various data types are supported: STRING, LIST, HASH, SET, SORTED_SET, HYPER_LOG_LOGcollector| 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 |
process(Tuple input) |
getInstance, prepare, returnInstanceexecute, onTickTuplecleanupgetComponentConfigurationclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetComponentConfigurationpublic RedisStoreBolt(JedisPoolConfig config, RedisStoreMapper storeMapper)
Constructor for single Redis environment (JedisPool)
config - configuration for initializing JedisPoolstoreMapper - mapper containing which datatype, storing value’s key that Bolt usespublic RedisStoreBolt(JedisClusterConfig config, RedisStoreMapper storeMapper)
Constructor for Redis Cluster environment (JedisCluster)
config - configuration for initializing JedisClusterstoreMapper - mapper containing which datatype, storing value’s key that Bolt usespublic void process(Tuple input)
process in class BaseTickTupleAwareRichBoltpublic void declareOutputFields(OutputFieldsDeclarer declarer)
Copyright © 2018 The Apache Software Foundation. All Rights Reserved.