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.AbstractHdfsBoltcollector, configKey, fileNameFormat, fileRetryCount, fs, fsUrl, hdfsConfig, maxOpenFiles, offset, partitioner, rotationActions, rotationCounterMap, rotationPolicy, rotationTimer, syncPolicy, tickTupleInterval, writeLock, writers
 
- 
 - 
Constructor SummaryConstructors Constructor Description SequenceFileBolt()
 - 
Method Summary- 
Methods inherited from class org.apache.storm.hdfs.bolt.AbstractHdfsBoltcleanup, declareOutputFields, execute, getBasePathForNextFile, getComponentConfiguration, prepare, rotateOutputFile
 
- 
 
- 
- 
- 
Method Detail- 
withCompressionCodecpublic SequenceFileBolt withCompressionCodec(String codec) 
 - 
withFsUrlpublic SequenceFileBolt withFsUrl(String fsUrl) 
 - 
withConfigKeypublic SequenceFileBolt withConfigKey(String configKey) 
 - 
withFileNameFormatpublic SequenceFileBolt withFileNameFormat(FileNameFormat fileNameFormat) 
 - 
withSequenceFormatpublic SequenceFileBolt withSequenceFormat(SequenceFormat format) 
 - 
withSyncPolicypublic SequenceFileBolt withSyncPolicy(SyncPolicy syncPolicy) 
 - 
withRotationPolicypublic SequenceFileBolt withRotationPolicy(FileRotationPolicy rotationPolicy) 
 - 
withCompressionTypepublic SequenceFileBolt withCompressionType(org.apache.hadoop.io.SequenceFile.CompressionType compressionType) 
 - 
withTickTupleIntervalSecondspublic SequenceFileBolt withTickTupleIntervalSeconds(int interval) 
 - 
addRotationActionpublic SequenceFileBolt addRotationAction(RotationAction action) 
 - 
withRetryCountpublic SequenceFileBolt withRetryCount(int fileRetryCount) 
 - 
withPartitionerpublic SequenceFileBolt withPartitioner(Partitioner partitioner) 
 - 
withMaxOpenFilespublic SequenceFileBolt withMaxOpenFiles(int maxOpenFiles) 
 - 
doPreparepublic void doPrepare(Map<String,Object> conf, TopologyContext topologyContext, OutputCollector collector) throws IOException - Specified by:
- doPreparein class- AbstractHdfsBolt
- Throws:
- IOException
 
 - 
getWriterKeyprotected String getWriterKey(Tuple tuple) - Specified by:
- getWriterKeyin class- AbstractHdfsBolt
 
 - 
makeNewWriterprotected AbstractHDFSWriter makeNewWriter(org.apache.hadoop.fs.Path path, Tuple tuple) throws IOException - Specified by:
- makeNewWriterin class- AbstractHdfsBolt
- Throws:
- IOException
 
 
- 
 
-