public interface ITridentSpout<T> extends ITridentDataSource
Modifier and Type | Interface and Description |
---|---|
static interface |
ITridentSpout.BatchCoordinator<X> |
static interface |
ITridentSpout.Emitter<X> |
Modifier and Type | Method and Description |
---|---|
Map<String,Object> |
getComponentConfiguration() |
ITridentSpout.BatchCoordinator<T> |
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<T> |
getEmitter(String txStateId,
Map<String,Object> conf,
TopologyContext context)
The emitter for a TransactionalSpout runs as many tasks across the cluster.
|
Fields |
getOutputFields() |
ITridentSpout.BatchCoordinator<T> getCoordinator(String txStateId, Map<String,Object> conf, TopologyContext context)
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.
txStateId
- stream idconf
- Storm config mapcontext
- topology contextITridentSpout.Emitter<T> getEmitter(String txStateId, Map<String,Object> conf, TopologyContext context)
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.
txStateId
- stream idconf
- Storm config mapcontext
- topology contextFields getOutputFields()
Copyright © 2023 The Apache Software Foundation. All rights reserved.