Class DataOutputStream

java.lang.Object
java.io.OutputStream
org.apache.hadoop.mapred.nativetask.buffer.DataOutputStream
All Implemented Interfaces:
Closeable, DataOutput, Flushable, AutoCloseable
Direct Known Subclasses:
ByteBufferDataWriter

@Private public abstract class DataOutputStream extends OutputStream implements DataOutput
  • Constructor Details

    • DataOutputStream

      public DataOutputStream()
  • Method Details

    • shortOfSpace

      public abstract boolean shortOfSpace(int length) throws IOException
      Check whether this buffer has enough space to store length of bytes
      Parameters:
      length - length of bytes
      Throws:
      IOException
    • hasUnFlushedData

      public abstract boolean hasUnFlushedData()
      Check whether there is unflushed data stored in the stream