org.apache.storm.hdfs.bolt
Class SequenceFileBolt
java.lang.Object
backtype.storm.topology.base.BaseComponent
backtype.storm.topology.base.BaseRichBolt
org.apache.storm.hdfs.bolt.AbstractHdfsBolt
org.apache.storm.hdfs.bolt.SequenceFileBolt
- All Implemented Interfaces:
- IBolt, IComponent, IRichBolt, Serializable
public class SequenceFileBolt
- extends AbstractHdfsBolt
- See Also:
- Serialized Form
Fields inherited from class org.apache.storm.hdfs.bolt.AbstractHdfsBolt |
collector, configKey, fileNameFormat, fs, fsUrl, hdfsConfig, rotation, rotationActions, rotationPolicy, rotationTimer, syncPolicy, writeLock |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SequenceFileBolt
public SequenceFileBolt()
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)
addRotationAction
public SequenceFileBolt addRotationAction(RotationAction action)
doPrepare
public void doPrepare(Map conf,
TopologyContext topologyContext,
OutputCollector collector)
throws IOException
- Throws:
IOException
execute
public void execute(Tuple tuple)
Copyright © 2016 The Apache Software Foundation. All Rights Reserved.