public class OpaqueMemoryTransactionalSpout extends Object implements IOpaquePartitionedTransactionalSpout<MemoryTransactionalSpoutMeta>
This spout only works in local mode.
Constructor and Description |
---|
OpaqueMemoryTransactionalSpout(Map<Integer,List<List<Object>>> partitions,
Fields outFields,
int takeAmt) |
Modifier and Type | Method and Description |
---|---|
void |
cleanup() |
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.
|
IOpaquePartitionedTransactionalSpout.Coordinator |
getCoordinator(Map conf,
TopologyContext context) |
IOpaquePartitionedTransactionalSpout.Emitter<MemoryTransactionalSpoutMeta> |
getEmitter(Map conf,
TopologyContext context) |
boolean |
isExhaustedTuples() |
void |
setDisabled(Integer partition,
boolean disabled) |
void |
startup() |
public static final String TX_FIELD
public void setDisabled(Integer partition, boolean disabled)
public boolean isExhaustedTuples()
public IOpaquePartitionedTransactionalSpout.Emitter<MemoryTransactionalSpoutMeta> getEmitter(Map conf, TopologyContext context)
getEmitter
in interface IOpaquePartitionedTransactionalSpout<MemoryTransactionalSpoutMeta>
public IOpaquePartitionedTransactionalSpout.Coordinator getCoordinator(Map conf, TopologyContext context)
getCoordinator
in interface IOpaquePartitionedTransactionalSpout<MemoryTransactionalSpoutMeta>
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
public void startup()
public void cleanup()
Copyright © 2019 The Apache Software Foundation. All Rights Reserved.