org.apache.storm.elasticsearch.trident

## Class EsStateFactory

- java.lang.Object
- - org.apache.storm.elasticsearch.trident.EsStateFactory

- All Implemented Interfaces:
    Serializable, StateFactory

      public class EsStateFactory
      extends Object
      implements StateFactory

  StateFactory for providing EsState.

  Since:
    0.11
  See Also:
    Serialized Form

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `EsStateFactory(EsConfig esConfig, EsTupleMapper tupleMapper)` EsStateFactory constructor.

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `State` | `makeState(Map<String,Object> conf, IMetricsContext metrics, int partitionIndex, int numPartitions)`

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

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

- - ### Constructor Detail

    - #### EsStateFactory

          public EsStateFactory(EsConfig esConfig,
                                EsTupleMapper tupleMapper)

      EsStateFactory constructor.

      Parameters:
        `esConfig` - Elasticsearch configuration containing node addresses and cluster name `EsConfig`
        `tupleMapper` - Tuple to ES document mapper `EsTupleMapper`

  - ### Method Detail

    - #### makeState

          public State makeState(Map<String,Object> conf,
                                 IMetricsContext metrics,
                                 int partitionIndex,
                                 int numPartitions)

      Specified by:
        `makeState` in interface `StateFactory`

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