public class OpaquePartitionedTransactionalSpoutExecutor extends Object implements ICommitterTransactionalSpout<Object>
Modifier and Type | Class and Description |
---|---|
class |
OpaquePartitionedTransactionalSpoutExecutor.Coordinator |
class |
OpaquePartitionedTransactionalSpoutExecutor.Emitter |
Constructor and Description |
---|
OpaquePartitionedTransactionalSpoutExecutor(IOpaquePartitionedTransactionalSpout 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<Object> |
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.
|
ICommitterTransactionalSpout.Emitter |
getEmitter(Map conf,
TopologyContext context)
The emitter for a TransactionalSpout runs as many tasks across the cluster.
|
public OpaquePartitionedTransactionalSpoutExecutor(IOpaquePartitionedTransactionalSpout spout)
public ITransactionalSpout.Coordinator<Object> getCoordinator(Map conf, TopologyContext context)
ITransactionalSpout
The coordinator for a TransactionalSpout runs in a single thread and indicates when batches of tuples should be emitted and when transactions should commit. The Coordinator that you provide in a TransactionalSpout provides metadata for each transaction so that the transactions can be replayed.
getCoordinator
in interface ITransactionalSpout<Object>
public ICommitterTransactionalSpout.Emitter getEmitter(Map conf, TopologyContext context)
ITransactionalSpout
The emitter for a TransactionalSpout runs as many tasks across the cluster. Emitters are responsible for emitting batches of tuples for a transaction and must ensure that the same batch of tuples is always emitted for the same transaction id.
getEmitter
in interface ICommitterTransactionalSpout<Object>
getEmitter
in interface ITransactionalSpout<Object>
public void declareOutputFields(OutputFieldsDeclarer declarer)
IComponent
Declare the output schema for all the streams of this topology.
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
Declare configuration specific to this component. Only a subset of the “topology.*” configs can be overridden. The component configuration can be further overridden when constructing the topology using TopologyBuilder
getComponentConfiguration
in interface IComponent
Copyright © 2019 The Apache Software Foundation. All Rights Reserved.