public class CountingCommitBolt extends BaseTransactionalBolt implements ICommitter
| Constructor and Description |
|---|
CountingCommitBolt() |
| Modifier and Type | Method and Description |
|---|---|
void |
declareOutputFields(OutputFieldsDeclarer declarer)
Declare the output schema for all the streams of this topology.
|
void |
execute(Tuple tuple) |
void |
finishBatch() |
void |
prepare(Map conf,
TopologyContext context,
BatchOutputCollector collector,
TransactionAttempt id) |
getComponentConfigurationclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetComponentConfigurationpublic void prepare(Map conf, TopologyContext context, BatchOutputCollector collector, TransactionAttempt id)
prepare in interface IBatchBolt<TransactionAttempt>public void execute(Tuple tuple)
execute in interface IBatchBolt<TransactionAttempt>public void finishBatch()
finishBatch in interface IBatchBolt<TransactionAttempt>public void declareOutputFields(OutputFieldsDeclarer declarer)
IComponentDeclare the output schema for all the streams of this topology.
declareOutputFields in interface IComponentdeclarer - this is used to declare output stream ids, output fields, and whether or not each output stream is a direct streamCopyright © 2019 The Apache Software Foundation. All Rights Reserved.