public class HdfsSpout extends BaseRichSpout
Constructor and Description |
---|
HdfsSpout() |
Modifier and Type | Method and Description |
---|---|
void |
ack(Object msgId) |
void |
declareOutputFields(OutputFieldsDeclarer declarer) |
protected void |
emitData(List<Object> tuple,
org.apache.storm.hdfs.spout.HdfsSpout.MessageId id) |
void |
fail(Object msgId) |
SpoutOutputCollector |
getCollector() |
org.apache.hadoop.fs.Path |
getLockDirPath() |
void |
nextTuple() |
void |
open(Map conf,
TopologyContext context,
SpoutOutputCollector collector) |
HdfsSpout |
withConfigKey(String configKey)
set key name under which HDFS options are placed.
|
HdfsSpout |
withOutputFields(String... fields)
Name of the output field names.
|
activate, close, deactivate
getComponentConfiguration
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getComponentConfiguration
public HdfsSpout withOutputFields(String... fields)
Name of the output field names. Number of fields depends upon the reader type
public HdfsSpout withConfigKey(String configKey)
set key name under which HDFS options are placed. (similar to HDFS bolt). default key name is ‘hdfs.config’
public org.apache.hadoop.fs.Path getLockDirPath()
public SpoutOutputCollector getCollector()
public void nextTuple()
protected void emitData(List<Object> tuple, org.apache.storm.hdfs.spout.HdfsSpout.MessageId id)
public void open(Map conf, TopologyContext context, SpoutOutputCollector collector)
public void ack(Object msgId)
ack
in interface ISpout
ack
in class BaseRichSpout
public void fail(Object msgId)
fail
in interface ISpout
fail
in class BaseRichSpout
public void declareOutputFields(OutputFieldsDeclarer declarer)
Copyright © 2016 The Apache Software Foundation. All Rights Reserved.