public class EsStateFactory extends Object implements StateFactory
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)
esConfig
- Elasticsearch configuration containing node addresses and cluster name EsConfig
tupleMapper
- Tuple to ES document mapper EsTupleMapper
public State makeState(Map<String,Object> conf, IMetricsContext metrics, int partitionIndex, int numPartitions)
makeState
in interface StateFactory
Copyright © 2023 The Apache Software Foundation. All rights reserved.