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

    Modifier and Type
    Method
    Description
    void
    Flush out the data in client's user buffer.
    void
    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).
  • Method Details

    • hflush

      void hflush() throws IOException
      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

      void hsync() throws IOException
      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