@Override
    public void write(DataOutput out) throws IOException {
      int flags = (fileId != null ? HAS_LONG_FILEID_FLAG : 0) |
          (attemptId != null ? HAS_ATTEMPTID_FLAG : 0) |
          (stmtId != null ? HAS_STMTID_FLAG : 0);
      out.writeByte(flags);
      out.writeLong(modTime);
      out.writeLong(length);
      out.writeInt(bucketId);
      if (attemptId != null) {
        out.writeInt(attemptId);
      }
      if (fileId != null) {
        out.writeLong(fileId);
      }
      if (stmtId != null) {
        out.writeInt(stmtId);
      }
    }
@param minWriteId min writeId of the delta directory
@param maxWriteId max writeId of the delta directory
@param stmtIds delta dir suffixes when a single txn writes &gt; 1 delta in the same partition
@param visibilityTxnId maybe 0, if the dir name didn't have it.  txnid:0 is always visible
@param deltaFiles bucketFiles in the directory
ql/src/java/org/apache/hadoop/hive/ql/io/AcidInputFormat.java