Examples of LazyTimestamp


Examples of org.apache.hadoop.hive.serde2.lazy.LazyTimestamp

  protected LazyTimestampObjectInspector() {
    super(PrimitiveObjectInspectorUtils.timestampTypeEntry);
  }

  public Object copyObject(Object o) {
    return o == null ? null : new LazyTimestamp((LazyTimestamp) o);
  }
View Full Code Here

Examples of org.apache.hadoop.hive.serde2.lazy.LazyTimestamp

  protected LazyTimestampObjectInspector() {
    super(TypeInfoFactory.timestampTypeInfo);
  }

  public Object copyObject(Object o) {
    return o == null ? null : new LazyTimestamp((LazyTimestamp) o);
  }
View Full Code Here

Examples of org.apache.hadoop.hive.serde2.lazy.LazyTimestamp

    byteRef.setData(valueBytes);
    LazyTimestampObjectInspector lazyTimestampOI = (LazyTimestampObjectInspector) LazyPrimitiveObjectInspectorFactory
        .getLazyObjectInspector(TypeInfoFactory
            .getPrimitiveTypeInfo(serdeConstants.TIMESTAMP_TYPE_NAME));
    LazyTimestamp lazyTimestamp = (LazyTimestamp) LazyFactory.createLazyObject(lazyTimestampOI);
    lazyTimestamp.init(byteRef, 0, valueBytes.length);

    Assert.assertEquals(timestampValue, lazyTimestamp.getWritableObject().getTimestamp());

    // char
    cqHolder.set("char");
    valueBytes = value.getValue(cfText, cqHolder);
    Assert.assertNotNull(valueBytes);
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.