Class BatchSpoutExecutor.BatchSpoutEmitter

    • Constructor Detail

      • BatchSpoutEmitter

        public BatchSpoutEmitter()
    • Method Detail

      • emitBatch

        public void emitBatch​(TransactionAttempt tx,
                              Object coordinatorMeta,
                              TridentCollector collector)
        Description copied from interface: ITridentSpout.Emitter
        Emit a batch for the specified transaction attempt and metadata for the transaction. The metadata was created by the Coordinator in the initializeTransaction method. This method must always emit the same batch of tuples across all tasks for the same transaction id.
        Specified by:
        emitBatch in interface ITridentSpout.Emitter<Object>
        Parameters:
        tx - transaction id
        coordinatorMeta - metadata from the coordinator defining this transaction
        collector - output tuple collector