Package org.apache.storm.hdfs.common
Class AvroGenericRecordHDFSWriter
java.lang.Object
org.apache.storm.hdfs.common.AbstractHDFSWriter
org.apache.storm.hdfs.common.AvroGenericRecordHDFSWriter
- All Implemented Interfaces:
Writer
-
Field Summary
Fields inherited from class org.apache.storm.hdfs.common.AbstractHDFSWriter
filePath, lastUsedTime, needsRotation, offset, rotationPolicy
-
Constructor Summary
ConstructorDescriptionAvroGenericRecordHDFSWriter
(FileRotationPolicy policy, org.apache.hadoop.fs.Path path, org.apache.hadoop.fs.FSDataOutputStream stream, org.apache.avro.Schema schema) -
Method Summary
Methods inherited from class org.apache.storm.hdfs.common.AbstractHDFSWriter
close, getFilePath, needsRotation, sync, write
-
Constructor Details
-
AvroGenericRecordHDFSWriter
public AvroGenericRecordHDFSWriter(FileRotationPolicy policy, org.apache.hadoop.fs.Path path, org.apache.hadoop.fs.FSDataOutputStream stream, org.apache.avro.Schema schema) throws IOException - Throws:
IOException
-
-
Method Details
-
doWrite
- Specified by:
doWrite
in classAbstractHDFSWriter
- Throws:
IOException
-
doSync
- Specified by:
doSync
in classAbstractHDFSWriter
- Throws:
IOException
-
doClose
- Specified by:
doClose
in classAbstractHDFSWriter
- Throws:
IOException
-