Package org.apache.storm.kafka.trident
Class TridentKafkaState<K,V> 
java.lang.Object
org.apache.storm.kafka.trident.TridentKafkaState<K,V> 
- All Implemented Interfaces:
- State
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidbeginCommit(Long txid) voidvoidprepare(Properties options) Prepare this State.voidupdateState(List<TridentTuple> tuples, TridentCollector collector) Write the given tuples to Kafka.withKafkaTopicSelector(KafkaTopicSelector selector) 
- 
Constructor Details- 
TridentKafkaStatepublic TridentKafkaState()
 
- 
- 
Method Details- 
withTridentTupleToKafkaMapper
- 
withKafkaTopicSelector
- 
beginCommit- Specified by:
- beginCommitin interface- State
 
- 
commit
- 
preparePrepare this State.- Parameters:
- options- The KafkaProducer config.
 
- 
updateStateWrite the given tuples to Kafka.- Parameters:
- tuples- The tuples to write.
- collector- The Trident collector.
 
 
-