public static interface ITridentSpout.Emitter<X>
Modifier and Type | Method and Description |
---|---|
void |
close()
Release any resources held by this emitter.
|
void |
emitBatch(TransactionAttempt tx,
X coordinatorMeta,
TridentCollector collector)
Emit a batch for the specified transaction attempt and metadata for the transaction.
|
void |
success(TransactionAttempt tx)
This attempt committed successfully, so all state for this commit and before can be safely cleaned up.
|
void emitBatch(TransactionAttempt tx, X coordinatorMeta, TridentCollector collector)
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.
tx
- transaction idcoordinatorMeta
- metadata from the coordinator defining this transactioncollector
- output tuple collectorvoid success(TransactionAttempt tx)
This attempt committed successfully, so all state for this commit and before can be safely cleaned up.
tx
- attempt object containing transaction id and attempt numbervoid close()
Release any resources held by this emitter.
Copyright © 2019 The Apache Software Foundation. All Rights Reserved.