storm.trident.spout
Interface IOpaquePartitionedTridentSpout.Emitter<Partitions,Partition extends ISpoutPartition,M>
- Enclosing interface:
- IOpaquePartitionedTridentSpout<Partitions,Partition extends ISpoutPartition,M>
public static interface IOpaquePartitionedTridentSpout.Emitter<Partitions,Partition extends ISpoutPartition,M>
emitPartitionBatch
M emitPartitionBatch(TransactionAttempt tx,
TridentCollector collector,
Partition partition,
M 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.
refreshPartitions
void refreshPartitions(List<Partition> partitionResponsibilities)
- This method is called when this task is responsible for a new set of partitions. Should be used
to manage things like connections to brokers.
getOrderedPartitions
List<Partition> getOrderedPartitions(Partitions allPartitionInfo)
close
void close()
Copyright © 2014 The Apache Software Foundation. All Rights Reserved.