Package org.apache.storm.hdfs.common
Class AbstractHDFSWriter
java.lang.Object
org.apache.storm.hdfs.common.AbstractHDFSWriter
- All Implemented Interfaces:
- Writer
- Direct Known Subclasses:
- AvroGenericRecordHDFSWriter,- HDFSWriter,- SequenceFileWriter
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprotected final org.apache.hadoop.fs.Pathprotected longprotected booleanprotected longprotected final FileRotationPolicy
- 
Constructor SummaryConstructorsConstructorDescriptionAbstractHDFSWriter(FileRotationPolicy policy, org.apache.hadoop.fs.Path path) 
- 
Method Summary
- 
Field Details- 
filePathprotected final org.apache.hadoop.fs.Path filePath
- 
rotationPolicy
- 
lastUsedTimeprotected long lastUsedTime
- 
offsetprotected long offset
- 
needsRotationprotected boolean needsRotation
 
- 
- 
Constructor Details- 
AbstractHDFSWriter
 
- 
- 
Method Details- 
write- Specified by:
- writein interface- Writer
- Throws:
- IOException
 
- 
sync- Specified by:
- syncin interface- Writer
- Throws:
- IOException
 
- 
close- Specified by:
- closein interface- Writer
- Throws:
- IOException
 
- 
needsRotationpublic boolean needsRotation()- Specified by:
- needsRotationin interface- Writer
 
- 
getFilePathpublic org.apache.hadoop.fs.Path getFilePath()- Specified by:
- getFilePathin interface- Writer
 
- 
doWrite- Throws:
- IOException
 
- 
doSync- Throws:
- IOException
 
- 
doClose- Throws:
- IOException
 
 
-