Package org.apache.storm.kafka.trident
Class TridentKafkaStateFactory<K,V>
java.lang.Object
org.apache.storm.kafka.trident.TridentKafkaStateFactory<K,V>
- All Implemented Interfaces:
Serializable
,StateFactory
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionmakeState
(Map<String, Object> conf, IMetricsContext metrics, int partitionIndex, int numPartitions) withKafkaTopicSelector
(KafkaTopicSelector selector) withProducerProperties
(Properties props)
-
Constructor Details
-
TridentKafkaStateFactory
public TridentKafkaStateFactory()
-
-
Method Details
-
withTridentTupleToKafkaMapper
public TridentKafkaStateFactory<K,V> withTridentTupleToKafkaMapper(TridentTupleToKafkaMapper<K, V> mapper) -
withKafkaTopicSelector
-
withProducerProperties
-
makeState
public State makeState(Map<String, Object> conf, IMetricsContext metrics, int partitionIndex, int numPartitions) - Specified by:
makeState
in interfaceStateFactory
-