public void logAddStream(int colIx, Stream.Kind streamKind, long streamOffset,
      long length, int indexIx, boolean isEntire) {
    if (log == null) return;
    int offset = this.offset;
    if (offset + 4 > log.length) return;
    log[offset] = makeIntPair(ADD_STREAM, colIx);
    log[offset + 1] = streamOffset;
    log[offset + 2] = makeIntPair((int)length, streamKind.ordinal());
    log[offset + 3] = makeIntPair(indexIx, isEntire ? 1 : 0);
    this.offset += 4;
  }
Single threaded IO trace.
Note: this can be made MTT merely by using an AtomicInteger, and storing a thread ID.
ql/src/java/org/apache/hadoop/hive/ql/io/orc/encoded/IoTrace.java