public void resetWrite() throws IOException {
    if (!isOpen) {
      return;
    }

    // Truncate by re-opening FileOutputStream.
    fileOutputStream.close();
    fileOutputStream = new FileOutputStream(tmpFile);
  }
An eager bytes container that puts row bytes to an output stream.
ql/src/java/org/apache/hadoop/hive/ql/exec/vector/rowbytescontainer/VectorRowBytesContainer.java