org.apache.storm.hdfs.bolt
Class HdfsBolt

java.lang.Object
  extended by backtype.storm.topology.base.BaseComponent
      extended by backtype.storm.topology.base.BaseRichBolt
          extended by org.apache.storm.hdfs.bolt.AbstractHdfsBolt
              extended by org.apache.storm.hdfs.bolt.HdfsBolt
All Implemented Interfaces:
IBolt, IComponent, IRichBolt, Serializable

public class HdfsBolt
extends AbstractHdfsBolt

See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.apache.storm.hdfs.bolt.AbstractHdfsBolt
collector, configKey, fileNameFormat, fs, fsUrl, hdfsConfig, rotation, rotationActions, rotationPolicy, rotationTimer, syncPolicy, writeLock
 
Constructor Summary
HdfsBolt()
           
 
Method Summary
 HdfsBolt addRotationAction(RotationAction action)
           
 void doPrepare(Map conf, TopologyContext topologyContext, OutputCollector collector)
           
 void execute(Tuple tuple)
           
 HdfsBolt withConfigKey(String configKey)
           
 HdfsBolt withFileNameFormat(FileNameFormat fileNameFormat)
           
 HdfsBolt withFsUrl(String fsUrl)
           
 HdfsBolt withRecordFormat(RecordFormat format)
           
 HdfsBolt withRotationPolicy(FileRotationPolicy rotationPolicy)
           
 HdfsBolt withSyncPolicy(SyncPolicy syncPolicy)
           
 
Methods inherited from class org.apache.storm.hdfs.bolt.AbstractHdfsBolt
declareOutputFields, prepare, rotateOutputFile
 
Methods inherited from class backtype.storm.topology.base.BaseRichBolt
cleanup
 
Methods inherited from class backtype.storm.topology.base.BaseComponent
getComponentConfiguration
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface backtype.storm.topology.IComponent
getComponentConfiguration
 

Constructor Detail

HdfsBolt

public HdfsBolt()
Method Detail

withFsUrl

public HdfsBolt withFsUrl(String fsUrl)

withConfigKey

public HdfsBolt withConfigKey(String configKey)

withFileNameFormat

public HdfsBolt withFileNameFormat(FileNameFormat fileNameFormat)

withRecordFormat

public HdfsBolt withRecordFormat(RecordFormat format)

withSyncPolicy

public HdfsBolt withSyncPolicy(SyncPolicy syncPolicy)

withRotationPolicy

public HdfsBolt withRotationPolicy(FileRotationPolicy rotationPolicy)

addRotationAction

public HdfsBolt addRotationAction(RotationAction action)

doPrepare

public void doPrepare(Map conf,
                      TopologyContext topologyContext,
                      OutputCollector collector)
               throws IOException
Throws:
IOException

execute

public void execute(Tuple tuple)


Copyright © 2015 The Apache Software Foundation. All Rights Reserved.