public class FileSpout extends AbstractLineSpout
Modifier and Type | Field and Description |
---|---|
static String |
INPUT_FILE_PATH |
protected String |
path |
protected BufferedReader |
reader |
ATTRIBUTE_LINE, collector
Modifier and Type | Method and Description |
---|---|
void |
close() |
void |
nextTuple() |
void |
open(Map conf,
org.apache.storm.task.TopologyContext context,
org.apache.storm.spout.SpoutOutputCollector collector) |
ack, activate, deactivate, declareOutputFields, fail, getComponentConfiguration
public static final String INPUT_FILE_PATH
protected String path
protected BufferedReader reader
public FileSpout()
public FileSpout(String path)
public void open(Map conf, org.apache.storm.task.TopologyContext context, org.apache.storm.spout.SpoutOutputCollector collector)
open
in interface org.apache.storm.spout.ISpout
open
in class AbstractLineSpout
public void close()
close
in interface org.apache.storm.spout.ISpout
close
in class AbstractLineSpout
public void nextTuple()
Copyright © 2014–2018 The Apache Software Foundation. All rights reserved.