public class FeederCommitterBatchSpout extends Object implements ICommitterTridentSpout<Map<Integer,List<List<Object>>>>, IFeeder
ICommitterTridentSpout.EmitterITridentSpout.BatchCoordinator<X>| Constructor and Description |
|---|
FeederCommitterBatchSpout(List<String> fields) |
| Modifier and Type | Method and Description |
|---|---|
void |
feed(Object tuples) |
Map<String,Object> |
getComponentConfiguration() |
ITridentSpout.BatchCoordinator<Map<Integer,List<List<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.
|
ICommitterTridentSpout.Emitter |
getEmitter(String txStateId,
Map<String,Object> conf,
TopologyContext context)
The emitter for a TransactionalSpout runs as many tasks across the cluster.
|
Fields |
getOutputFields() |
void |
setWaitToEmit(boolean trueIfWait) |
public void setWaitToEmit(boolean trueIfWait)
public ICommitterTridentSpout.Emitter getEmitter(String txStateId, Map<String,Object> conf, TopologyContext context)
ITridentSpoutAll 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 ICommitterTridentSpout<Map<Integer,List<List<Object>>>>getEmitter in interface ITridentSpout<Map<Integer,List<List<Object>>>>txStateId - stream idconf - Storm config mapcontext - topology contextpublic ITridentSpout.BatchCoordinator<Map<Integer,List<List<Object>>>> getCoordinator(String txStateId, Map<String,Object> conf, TopologyContext context)
ITridentSpoutTwo 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<Map<Integer,List<List<Object>>>>txStateId - stream idconf - Storm config mapcontext - topology contextpublic Fields getOutputFields()
getOutputFields in interface ITridentSpout<Map<Integer,List<List<Object>>>>public Map<String,Object> getComponentConfiguration()
getComponentConfiguration in interface ITridentSpout<Map<Integer,List<List<Object>>>>Copyright © 2023 The Apache Software Foundation. All rights reserved.