Class KeyFactory.DefaultKeyFactory
java.lang.Object
org.apache.storm.redis.trident.state.KeyFactory.DefaultKeyFactory
- All Implemented Interfaces:
Serializable
,KeyFactory
- Enclosing interface:
- KeyFactory
Default Key Factory.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.storm.redis.trident.state.KeyFactory
KeyFactory.DefaultKeyFactory
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
DefaultKeyFactory
public DefaultKeyFactory()
-
-
Method Details
-
build
Converts state key to Redis key. Currently DefaultKeyFactory returns just first element of list.- Specified by:
build
in interfaceKeyFactory
- Parameters:
key
- state key- Returns:
- Redis key
- Throws:
RuntimeException
- when key is compound key- See Also:
-