public static interface IOpaquePartitionedTransactionalSpout.Emitter<X>
Modifier and Type | Method and Description |
---|---|
void |
close() |
X |
emitPartitionBatch(TransactionAttempt tx,
BatchOutputCollector collector,
int partition,
X lastPartitionMeta)
Emit a batch of tuples for a partition/transaction.
|
int |
numPartitions() |
X emitPartitionBatch(TransactionAttempt tx, BatchOutputCollector collector, int partition, X lastPartitionMeta)
Emit a batch of tuples for a partition/transaction.
Return the metadata describing this batch that will be used as lastPartitionMeta for defining the parameters of the next batch.
int numPartitions()
void close()
Copyright © 2019 The Apache Software Foundation. All Rights Reserved.