org.apache.storm.cassandra.trident.state

## Class SerializedStateMapper<T>

- java.lang.Object
- - org.apache.storm.cassandra.trident.state.SerializedStateMapper<T>

- All Implemented Interfaces:
    Serializable, StateMapper<T>

      public class SerializedStateMapper<T>
      extends Object
      implements StateMapper<T>

  See Also:
    Serialized Form

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `SerializedStateMapper(String fieldName, Serializer<T> serializer)`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `T` | `fromValues(List<Values> values)`
    `Fields` | `getStateFields()`
    `String` | `toString()`
    `Values` | `toValues(T value)`

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

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

- - ### Constructor Detail

    - #### SerializedStateMapper

          public SerializedStateMapper(String fieldName,
                                       Serializer<T> serializer)

  - ### Method Detail

    - #### getStateFields

          public Fields getStateFields()

      Specified by:
        `getStateFields` in interface `StateMapper<T>`

    - #### toValues

          public Values toValues(T value)

      Specified by:
        `toValues` in interface `StateMapper<T>`

    - #### fromValues

          public T fromValues(List<Values> values)

      Specified by:
        `fromValues` in interface `StateMapper<T>`

    - #### toString

          public String toString()

      Overrides:
        `toString` in class `Object`

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