public class EsStateFactory extends Object implements StateFactory
StateFactory for providing EsState.
| Constructor and Description |
|---|
EsStateFactory(EsConfig esConfig,
EsTupleMapper tupleMapper)
EsStateFactory constructor
|
| Modifier and Type | Method and Description |
|---|---|
State |
makeState(Map conf,
IMetricsContext metrics,
int partitionIndex,
int numPartitions) |
public EsStateFactory(EsConfig esConfig, EsTupleMapper tupleMapper)
EsStateFactory constructor
esConfig - Elasticsearch configuration containing node addresses and cluster name EsConfigtupleMapper - Tuple to ES document mapper EsTupleMapperpublic State makeState(Map conf, IMetricsContext metrics, int partitionIndex, int numPartitions)
makeState in interface StateFactoryCopyright © 2019 The Apache Software Foundation. All Rights Reserved.