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, deactivategetComponentConfigurationclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetComponentConfigurationpublic 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 ISpoutack in class BaseRichSpoutpublic void fail(Object msgId)
fail in interface ISpoutfail in class BaseRichSpoutpublic void declareOutputFields(OutputFieldsDeclarer declarer)
Copyright © 2018 The Apache Software Foundation. All Rights Reserved.