public void write(DataInput in, int length) throws IOException {
    buffer.write(in, length);
  }
Writes bytes from a DataInput directly into the buffer.
ql/src/java/org/apache/hadoop/hive/ql/io/NonSyncDataOutputBuffer.java