Package org.apache.hadoop.hive.ql.io.parquet.timestamp

Examples of org.apache.hadoop.hive.ql.io.parquet.timestamp.NanoTime.writeValue()


    } else if (value instanceof BytesWritable) {
      recordConsumer.addBinary((Binary.fromByteArray(((BytesWritable) value).getBytes())));
    } else if (value instanceof TimestampWritable) {
      Timestamp ts = ((TimestampWritable) value).getTimestamp();
      NanoTime nt = NanoTimeUtils.getNanoTime(ts);
      nt.writeValue(recordConsumer);
    } else {
      throw new IllegalArgumentException("Unknown value type: " + value + " " + value.getClass());
    }
  }
}
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.