public class TridentSocketSpout extends Object implements IBatchSpout
Trident Spout for Socket data. Only available for Storm SQL, and only use for test purposes.
Constructor and Description |
---|
TridentSocketSpout(Scheme scheme,
String host,
int port) |
Modifier and Type | Method and Description |
---|---|
void |
ack(long batchId) |
void |
close() |
void |
emitBatch(long batchId,
TridentCollector collector) |
Map<String,Object> |
getComponentConfiguration() |
Fields |
getOutputFields() |
void |
open(Map conf,
TopologyContext context) |
public void open(Map conf, TopologyContext context)
open
in interface IBatchSpout
public void emitBatch(long batchId, TridentCollector collector)
emitBatch
in interface IBatchSpout
public void ack(long batchId)
ack
in interface IBatchSpout
public void close()
close
in interface IBatchSpout
public Map<String,Object> getComponentConfiguration()
getComponentConfiguration
in interface IBatchSpout
public Fields getOutputFields()
getOutputFields
in interface IBatchSpout
Copyright © 2022 The Apache Software Foundation. All Rights Reserved.