Package org.apache.storm.hdfs.bolt
Interface Writer
-
- All Known Implementing Classes:
AbstractHDFSWriter,AvroGenericRecordHDFSWriter,HDFSWriter,SequenceFileWriter
public interface Writer
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidclose()org.apache.hadoop.fs.PathgetFilePath()booleanneedsRotation()voidsync()longwrite(Tuple tuple)
-
-
-
Method Detail
-
write
long write(Tuple tuple) throws IOException
- Throws:
IOException
-
sync
void sync() throws IOException
- Throws:
IOException
-
close
void close() throws IOException- Throws:
IOException
-
needsRotation
boolean needsRotation()
-
getFilePath
org.apache.hadoop.fs.Path getFilePath()
-
-