org.apache.hadoop.fs
Interface Syncable

All Known Implementing Classes:
FSDataOutputStream

@InterfaceAudience.Public
@InterfaceStability.Evolving
public interface Syncable

This interface for flush/sync operation.


Method Summary
 void hflush()
          Flush out the data in client's user buffer.
 void 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).
 void sync()
          Deprecated. As of HADOOP 0.21.0, replaced by hflush
 

Method Detail

sync

@Deprecated
void sync()
          throws IOException
Deprecated. As of HADOOP 0.21.0, replaced by hflush

Throws:
IOException
See Also:
hflush()

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


Copyright © 2014 Apache Software Foundation. All Rights Reserved.