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, 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, backtype.storm.task.TopologyContext context, backtype.storm.spout.SpoutOutputCollector collector)
open
in interface backtype.storm.spout.ISpout
open
in class AbstractLineSpout
public void close()
close
in interface backtype.storm.spout.ISpout
close
in class AbstractLineSpout
public void nextTuple()
Copyright © 2014–2016 The Apache Software Foundation. All rights reserved.