public int getLength() {
    return count;
  }
A thread-not-safe version of ByteArrayInputStream, which removes all
synchronized modifiers.
common/src/java/org/apache/hadoop/hive/common/io/NonSyncByteArrayInputStream.java