Package org.apache.storm.hdfs.common
Class HDFSWriter
- java.lang.Object
-
- org.apache.storm.hdfs.common.AbstractHDFSWriter
-
- org.apache.storm.hdfs.common.HDFSWriter
-
- All Implemented Interfaces:
Writer
public class HDFSWriter extends AbstractHDFSWriter
-
-
Field Summary
-
Fields inherited from class org.apache.storm.hdfs.common.AbstractHDFSWriter
filePath, lastUsedTime, needsRotation, offset, rotationPolicy
-
-
Constructor Summary
Constructors Constructor Description HDFSWriter(FileRotationPolicy policy, org.apache.hadoop.fs.Path path, org.apache.hadoop.fs.FSDataOutputStream out, RecordFormat format)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
doClose()
protected void
doSync()
protected void
doWrite(Tuple tuple)
-
Methods inherited from class org.apache.storm.hdfs.common.AbstractHDFSWriter
close, getFilePath, needsRotation, sync, write
-
-
-
-
Constructor Detail
-
HDFSWriter
public HDFSWriter(FileRotationPolicy policy, org.apache.hadoop.fs.Path path, org.apache.hadoop.fs.FSDataOutputStream out, RecordFormat format)
-
-
Method Detail
-
doWrite
protected void doWrite(Tuple tuple) throws IOException
- Specified by:
doWrite
in classAbstractHDFSWriter
- Throws:
IOException
-
doSync
protected void doSync() throws IOException
- Specified by:
doSync
in classAbstractHDFSWriter
- Throws:
IOException
-
doClose
protected void doClose() throws IOException
- Specified by:
doClose
in classAbstractHDFSWriter
- Throws:
IOException
-
-