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 and Description
    `DefaultKeyFactory()`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and 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 Detail

    - #### DefaultKeyFactory

          public DefaultKeyFactory()

  - ### Method Detail

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

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