public static NanoTime fromBinary(Binary bytes) {
    Preconditions.checkArgument(bytes.length() == 12, "Must be 12 bytes");
    ByteBuffer buf = bytes.toByteBuffer();
    buf.order(ByteOrder.LITTLE_ENDIAN);
    long timeOfDayNanos = buf.getLong();
    int julianDay = buf.getInt();
    return new NanoTime(julianDay, timeOfDayNanos);
  }
Provides a wrapper representing a parquet-timestamp, with methods to
convert to and from binary.
ql/src/java/org/apache/hadoop/hive/ql/io/parquet/timestamp/NanoTime.java