Package org.apache.storm.redis.common.mapper

# 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 Summary

  Modifier and Type
  Method
  Description
  `String`
  `getKeyFromTuple(ITuple tuple)`
  Extracts key from tuple.
  `String`
  `getValueFromTuple(ITuple tuple)`
  Extracts value from tuple.

- ## 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