Interface TupleMapper
- All Superinterfaces:
Serializable
- All Known Subinterfaces:
RedisFilterMapper,RedisLookupMapper,RedisStoreMapper
- All Known Implementing Classes:
WordCountLookupMapper,WordCountStoreMapper
TupleMapper defines how to extract key and value from tuple for Redis.
-
Method Summary
Modifier and TypeMethodDescriptiongetKeyFromTuple(ITuple tuple) Extracts key from tuple.getValueFromTuple(ITuple tuple) Extracts value from tuple.
-
Method Details
-
getKeyFromTuple
Extracts key from tuple.- Parameters:
tuple- source tuple- Returns:
- key
-
getValueFromTuple
Extracts value from tuple.- Parameters:
tuple- source tuple- Returns:
- value
-