Package org.apache.hadoop.fs
Interface Syncable
- All Known Implementing Classes:
FSDataOutputStream,HdfsDataOutputStream
@Public
@Stable
public interface Syncable
This is the interface for flush/sync operations.
Consult the Hadoop filesystem specification for the definition of the
semantics of these operations.
-
Method Summary
-
Method Details
-
hflush
Flush out the data in client's user buffer. After the return of this call, new readers will see the data.- Throws:
IOException- if any error occurs
-
hsync
Similar to posix fsync, flush out the data in client's user buffer all the way to the disk device (but the disk may have it in its cache).- Throws:
IOException- if error occurs
-