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,
backtype.storm.task.TopologyContext context,
backtype.storm.spout.SpoutOutputCollector collector) |
ack, activate, deactivate, declareOutputFields, fail, getComponentConfigurationpublic static final String INPUT_FILE_PATH
protected String path
protected BufferedReader reader
public FileSpout()
public FileSpout(String path)
public void open(Map conf, backtype.storm.task.TopologyContext context, backtype.storm.spout.SpoutOutputCollector collector)
open in interface backtype.storm.spout.ISpoutopen in class AbstractLineSpoutpublic void close()
close in interface backtype.storm.spout.ISpoutclose in class AbstractLineSpoutpublic void nextTuple()
Copyright © 2014–2016 The Apache Software Foundation. All rights reserved.