Interface AsyncFSOutput

All Superinterfaces:
AutoCloseable, Closeable
All Known Implementing Classes:
FanOutOneBlockAsyncDFSOutput, WrapperAsyncFSOutput

@Private public interface AsyncFSOutput extends Closeable
Interface for asynchronous filesystem output stream.

The implementation is not required to be thread safe.

  • Method Summary

    Modifier and Type
    Method
    Description
    int
    Return the current size of buffered data.
    void
    Close the file.
    flush(boolean sync)
    Flush the buffer out.
    org.apache.hadoop.hdfs.protocol.DatanodeInfo[]
    Return current pipeline.
    long
    Returns byteSize success synced to underlying filesystem.
    boolean
    Whether the stream is broken.
    void
    The close method when error occurred.
    void
    write(byte[] b)
    Just call write(b, 0, b.length).
    void
    write(byte[] b, int off, int len)
    Copy the data into the buffer.
    void
    Copy the data in the given bb into the buffer.
    void
    writeInt(int i)
    Write an int to the buffer.