Class KeyFactory.DefaultKeyFactory
- java.lang.Object
-
- org.apache.storm.redis.trident.state.KeyFactory.DefaultKeyFactory
-
- All Implemented Interfaces:
Serializable
,KeyFactory
- Enclosing interface:
- KeyFactory
public static class KeyFactory.DefaultKeyFactory extends Object implements KeyFactory
Default Key Factory.- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.apache.storm.redis.trident.state.KeyFactory
KeyFactory.DefaultKeyFactory
-
-
Constructor Summary
Constructors Constructor Description DefaultKeyFactory()
-
-
-
Method Detail
-
build
public String build(List<Object> key)
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:
KeyFactory.build(List)
-
-