org.apache.storm.hdfs.bolt
Class AbstractHdfsBolt
java.lang.Object
backtype.storm.topology.base.BaseComponent
backtype.storm.topology.base.BaseRichBolt
org.apache.storm.hdfs.bolt.AbstractHdfsBolt
- All Implemented Interfaces:
- IBolt, IComponent, IRichBolt, Serializable
- Direct Known Subclasses:
- HdfsBolt, SequenceFileBolt
public abstract class AbstractHdfsBolt
- extends BaseRichBolt
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface backtype.storm.task.IBolt |
execute |
rotationActions
protected ArrayList<RotationAction> rotationActions
collector
protected OutputCollector collector
fs
protected transient org.apache.hadoop.fs.FileSystem fs
syncPolicy
protected SyncPolicy syncPolicy
rotationPolicy
protected FileRotationPolicy rotationPolicy
fileNameFormat
protected FileNameFormat fileNameFormat
rotation
protected int rotation
fsUrl
protected String fsUrl
configKey
protected String configKey
writeLock
protected transient Object writeLock
rotationTimer
protected transient Timer rotationTimer
hdfsConfig
protected transient org.apache.hadoop.conf.Configuration hdfsConfig
AbstractHdfsBolt
public AbstractHdfsBolt()
rotateOutputFile
protected void rotateOutputFile()
throws IOException
- Throws:
IOException
prepare
public final void prepare(Map conf,
TopologyContext topologyContext,
OutputCollector collector)
- Marked as final to prevent override. Subclasses should implement the doPrepare() method.
- Parameters:
conf
- topologyContext
- collector
-
declareOutputFields
public void declareOutputFields(OutputFieldsDeclarer outputFieldsDeclarer)
Copyright © 2014 The Apache Software Foundation. All Rights Reserved.