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 EsConfig
tupleMapper
- Tuple to ES document mapper EsTupleMapper
public State makeState(Map conf, IMetricsContext metrics, int partitionIndex, int numPartitions)
makeState
in interface StateFactory
Copyright © 2019 The Apache Software Foundation. All Rights Reserved.