Package org.apache.storm.hdfs.bolt
Class SequenceFileBolt
- java.lang.Object
-
- org.apache.storm.topology.base.BaseComponent
-
- org.apache.storm.topology.base.BaseRichBolt
-
- org.apache.storm.hdfs.bolt.AbstractHdfsBolt
-
- org.apache.storm.hdfs.bolt.SequenceFileBolt
-
- All Implemented Interfaces:
Serializable
,IBolt
,IComponent
,IRichBolt
public class SequenceFileBolt extends AbstractHdfsBolt
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class org.apache.storm.hdfs.bolt.AbstractHdfsBolt
collector, configKey, fileNameFormat, fileRetryCount, fs, fsUrl, hdfsConfig, maxOpenFiles, offset, partitioner, rotationActions, rotationCounterMap, rotationPolicy, rotationTimer, syncPolicy, tickTupleInterval, writeLock, writers
-
-
Constructor Summary
Constructors Constructor Description SequenceFileBolt()
-
Method Summary
-
Methods inherited from class org.apache.storm.hdfs.bolt.AbstractHdfsBolt
cleanup, declareOutputFields, execute, getBasePathForNextFile, getComponentConfiguration, prepare, rotateOutputFile
-
-
-
-
Method Detail
-
withCompressionCodec
public SequenceFileBolt withCompressionCodec(String codec)
-
withFsUrl
public SequenceFileBolt withFsUrl(String fsUrl)
-
withConfigKey
public SequenceFileBolt withConfigKey(String configKey)
-
withFileNameFormat
public SequenceFileBolt withFileNameFormat(FileNameFormat fileNameFormat)
-
withSequenceFormat
public SequenceFileBolt withSequenceFormat(SequenceFormat format)
-
withSyncPolicy
public SequenceFileBolt withSyncPolicy(SyncPolicy syncPolicy)
-
withRotationPolicy
public SequenceFileBolt withRotationPolicy(FileRotationPolicy rotationPolicy)
-
withCompressionType
public SequenceFileBolt withCompressionType(org.apache.hadoop.io.SequenceFile.CompressionType compressionType)
-
withTickTupleIntervalSeconds
public SequenceFileBolt withTickTupleIntervalSeconds(int interval)
-
addRotationAction
public SequenceFileBolt addRotationAction(RotationAction action)
-
withRetryCount
public SequenceFileBolt withRetryCount(int fileRetryCount)
-
withPartitioner
public SequenceFileBolt withPartitioner(Partitioner partitioner)
-
withMaxOpenFiles
public SequenceFileBolt withMaxOpenFiles(int maxOpenFiles)
-
doPrepare
public void doPrepare(Map<String,Object> conf, TopologyContext topologyContext, OutputCollector collector) throws IOException
- Specified by:
doPrepare
in classAbstractHdfsBolt
- Throws:
IOException
-
getWriterKey
protected String getWriterKey(Tuple tuple)
- Specified by:
getWriterKey
in classAbstractHdfsBolt
-
makeNewWriter
protected AbstractHDFSWriter makeNewWriter(org.apache.hadoop.fs.Path path, Tuple tuple) throws IOException
- Specified by:
makeNewWriter
in classAbstractHdfsBolt
- Throws:
IOException
-
-