org.apache.storm.hdfs.bolt
Class HdfsBolt
java.lang.Object
backtype.storm.topology.base.BaseComponent
backtype.storm.topology.base.BaseRichBolt
org.apache.storm.hdfs.bolt.AbstractHdfsBolt
org.apache.storm.hdfs.bolt.HdfsBolt
- All Implemented Interfaces:
- IBolt, IComponent, IRichBolt, Serializable
public class HdfsBolt
- 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 |
HdfsBolt
public HdfsBolt()
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 © 2016 The Apache Software Foundation. All Rights Reserved.