public class TridentKafkaStateFactory<K,V> extends Object implements StateFactory
Constructor and Description |
---|
TridentKafkaStateFactory() |
Modifier and Type | Method and Description |
---|---|
State |
makeState(Map<String,Object> conf,
IMetricsContext metrics,
int partitionIndex,
int numPartitions) |
TridentKafkaStateFactory<K,V> |
withKafkaTopicSelector(KafkaTopicSelector selector) |
TridentKafkaStateFactory<K,V> |
withProducerProperties(Properties props) |
TridentKafkaStateFactory<K,V> |
withTridentTupleToKafkaMapper(TridentTupleToKafkaMapper<K,V> mapper) |
public TridentKafkaStateFactory<K,V> withTridentTupleToKafkaMapper(TridentTupleToKafkaMapper<K,V> mapper)
public TridentKafkaStateFactory<K,V> withKafkaTopicSelector(KafkaTopicSelector selector)
public TridentKafkaStateFactory<K,V> withProducerProperties(Properties props)
public State makeState(Map<String,Object> conf, IMetricsContext metrics, int partitionIndex, int numPartitions)
makeState
in interface StateFactory
Copyright © 2020 The Apache Software Foundation. All rights reserved.