public class PartitionedTridentSpoutExecutor extends Object implements ITridentSpout<Object>
ITridentSpout.BatchCoordinator<X>
Constructor and Description |
---|
PartitionedTridentSpoutExecutor(IPartitionedTridentSpout<Object,ISpoutPartition,Object> spout) |
Modifier and Type | Method and Description |
---|---|
Map<String,Object> |
getComponentConfiguration() |
ITridentSpout.BatchCoordinator<Object> |
getCoordinator(String txStateId,
Map<String,Object> conf,
TopologyContext context)
The coordinator for a TransactionalSpout runs in a single thread and indicates when batches of tuples should be
emitted.
|
ITridentSpout.Emitter<Object> |
getEmitter(String txStateId,
Map<String,Object> conf,
TopologyContext context)
The emitter for a TransactionalSpout runs as many tasks across the cluster.
|
Fields |
getOutputFields() |
IPartitionedTridentSpout<Object,ISpoutPartition,Object> |
getPartitionedSpout() |
public PartitionedTridentSpoutExecutor(IPartitionedTridentSpout<Object,ISpoutPartition,Object> spout)
public IPartitionedTridentSpout<Object,ISpoutPartition,Object> getPartitionedSpout()
public ITridentSpout.BatchCoordinator<Object> getCoordinator(String txStateId, Map<String,Object> conf, TopologyContext context)
ITridentSpout
Two instances are requested, one on the master batch coordinator where isReady() is called, and an instance in the coordinator bolt which is used for all other operations. The two instances do not necessarily share a worker JVM.
getCoordinator
in interface ITridentSpout<Object>
txStateId
- stream idconf
- Storm config mapcontext
- topology contextpublic ITridentSpout.Emitter<Object> getEmitter(String txStateId, Map<String,Object> conf, TopologyContext context)
ITridentSpout
All emitter tasks get the same transaction metadata. The topology context parameter contains the instance task id that can be used to distribute the work across the tasks.
getEmitter
in interface ITridentSpout<Object>
txStateId
- stream idconf
- Storm config mapcontext
- topology contextpublic Map<String,Object> getComponentConfiguration()
getComponentConfiguration
in interface ITridentSpout<Object>
public Fields getOutputFields()
getOutputFields
in interface ITridentSpout<Object>
Copyright © 2023 The Apache Software Foundation. All rights reserved.