Class RedisClusterStateQuerier
java.lang.Object
org.apache.storm.trident.operation.BaseOperation
org.apache.storm.trident.state.BaseQueryFunction<T,List<Values>>
org.apache.storm.redis.trident.state.AbstractRedisStateQuerier<RedisClusterState>
org.apache.storm.redis.trident.state.RedisClusterStateQuerier
- All Implemented Interfaces:
Serializable
,EachOperation
,Operation
,QueryFunction<RedisClusterState,
List<Values>>
BaseQueryFunction implementation for Redis Cluster environment.
- See Also:
-
Field Summary
Fields inherited from class org.apache.storm.redis.trident.state.AbstractRedisStateQuerier
additionalKey, dataType
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionretrieveValuesFromRedis
(RedisClusterState state, List<String> keys) Retrieves values from Redis that each value is corresponding to each key.Methods inherited from class org.apache.storm.redis.trident.state.AbstractRedisStateQuerier
batchRetrieve, execute
Methods inherited from class org.apache.storm.trident.operation.BaseOperation
cleanup, prepare
-
Constructor Details
-
RedisClusterStateQuerier
Constructor.- Parameters:
lookupMapper
- mapper for querying
-
-
Method Details
-
retrieveValuesFromRedis
Retrieves values from Redis that each value is corresponding to each key.- Specified by:
retrieveValuesFromRedis
in classAbstractRedisStateQuerier<RedisClusterState>
- Parameters:
state
- State for handling querykeys
- keys having state values- Returns:
- values which are corresponding to keys
-