Package org.apache.storm.redis.trident.state

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

  Modifier and Type
  Method
  Description
  `String`
  `build(List<Object> key)`
  Converts state key to Redis key.

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Constructor Details

  - ### DefaultKeyFactory

    public DefaultKeyFactory()

- ## Method Details

  - ### 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 interface `KeyFactory`
    Parameters:
      `key` - state key
    Returns:
      Redis key
    Throws:
      `RuntimeException` - when key is compound key
    See Also:
      - `KeyFactory.build(List)`