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<String,Object> 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<String,Object> conf, IMetricsContext metrics, int partitionIndex, int numPartitions)
makeState in interface StateFactoryCopyright © 2021 The Apache Software Foundation. All rights reserved.