public class PartitionedTransactionalSpoutExecutor extends Object implements ITransactionalSpout<Integer>
Constructor and Description |
---|
PartitionedTransactionalSpoutExecutor(IPartitionedTransactionalSpout spout) |
Modifier and Type | Method and Description |
---|---|
void |
declareOutputFields(OutputFieldsDeclarer declarer)
Declare the output schema for all the streams of this topology.
|
Map<String,Object> |
getComponentConfiguration()
Declare configuration specific to this component.
|
ITransactionalSpout.Coordinator |
getCoordinator(Map conf,
TopologyContext context)
The coordinator for a TransactionalSpout runs in a single thread and indicates when batches
of tuples should be emitted and when transactions should commit.
|
ITransactionalSpout.Emitter |
getEmitter(Map conf,
TopologyContext context)
The emitter for a TransactionalSpout runs as many tasks across the cluster.
|
IPartitionedTransactionalSpout |
getPartitionedSpout() |
public PartitionedTransactionalSpoutExecutor(IPartitionedTransactionalSpout spout)
public IPartitionedTransactionalSpout getPartitionedSpout()
public ITransactionalSpout.Coordinator getCoordinator(Map conf, TopologyContext context)
ITransactionalSpout
getCoordinator
in interface ITransactionalSpout<Integer>
public ITransactionalSpout.Emitter getEmitter(Map conf, TopologyContext context)
ITransactionalSpout
getEmitter
in interface ITransactionalSpout<Integer>
public void declareOutputFields(OutputFieldsDeclarer declarer)
IComponent
declareOutputFields
in interface IComponent
declarer
- this is used to declare output stream ids, output fields, and whether or not each output stream is a direct streampublic Map<String,Object> getComponentConfiguration()
IComponent
TopologyBuilder
getComponentConfiguration
in interface IComponent
Copyright © 2016 The Apache Software Foundation. All Rights Reserved.