Interface TupleMapper

All Superinterfaces:
Serializable
All Known Subinterfaces:
RedisFilterMapper, RedisLookupMapper, RedisStoreMapper
All Known Implementing Classes:
WordCountLookupMapper, WordCountStoreMapper

public interface TupleMapper extends Serializable
TupleMapper defines how to extract key and value from tuple for Redis.
  • Method Details

    • getKeyFromTuple

      String getKeyFromTuple(ITuple tuple)
      Extracts key from tuple.
      Parameters:
      tuple - source tuple
      Returns:
      key
    • getValueFromTuple

      String getValueFromTuple(ITuple tuple)
      Extracts value from tuple.
      Parameters:
      tuple - source tuple
      Returns:
      value