public class FixedBatchSpout extends Object implements org.apache.storm.trident.spout.IBatchSpout
| Constructor and Description |
|---|
FixedBatchSpout(org.apache.storm.tuple.Fields fields,
int maxBatchSize,
List<Object>... outputs) |
| Modifier and Type | Method and Description |
|---|---|
void |
ack(long batchId) |
void |
close() |
void |
emitBatch(long batchId,
org.apache.storm.trident.operation.TridentCollector collector) |
Map<String,Object> |
getComponentConfiguration() |
org.apache.storm.tuple.Fields |
getOutputFields() |
void |
open(Map<String,Object> conf,
org.apache.storm.task.TopologyContext context) |
void |
setCycle(boolean cycle) |
public void setCycle(boolean cycle)
public void open(Map<String,Object> conf, org.apache.storm.task.TopologyContext context)
open in interface org.apache.storm.trident.spout.IBatchSpoutpublic void emitBatch(long batchId,
org.apache.storm.trident.operation.TridentCollector collector)
emitBatch in interface org.apache.storm.trident.spout.IBatchSpoutpublic void ack(long batchId)
ack in interface org.apache.storm.trident.spout.IBatchSpoutpublic void close()
close in interface org.apache.storm.trident.spout.IBatchSpoutpublic Map<String,Object> getComponentConfiguration()
getComponentConfiguration in interface org.apache.storm.trident.spout.IBatchSpoutpublic org.apache.storm.tuple.Fields getOutputFields()
getOutputFields in interface org.apache.storm.trident.spout.IBatchSpoutCopyright © 2023 The Apache Software Foundation. All rights reserved.