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

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method and Description
    --- | ---
    `String` | `getKeyFromTuple(ITuple tuple)` Extracts key from tuple.
    `String` | `getValueFromTuple(ITuple tuple)` Extracts value from tuple.

- - ### Method Detail

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

Copyright © 2021 The Apache Software Foundation. All rights reserved.