Examples of LazyDate


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

    super(TypeInfoFactory.dateTypeInfo);
  }

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

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

    Assert.assertNotNull(valueBytes);

    byteRef.setData(valueBytes);
    LazyDateObjectInspector lazyDateOI = (LazyDateObjectInspector) LazyPrimitiveObjectInspectorFactory
        .getLazyObjectInspector(TypeInfoFactory.getPrimitiveTypeInfo(serdeConstants.DATE_TYPE_NAME));
    LazyDate lazyDate = (LazyDate) LazyFactory.createLazyObject(lazyDateOI);
    lazyDate.init(byteRef, 0, valueBytes.length);

    Assert.assertEquals(dateValue, lazyDate.getWritableObject().get());

    // timestamp
    cqHolder.set("timestamp");
    valueBytes = value.getValue(cfText, cqHolder);
    Assert.assertNotNull(valueBytes);
View Full Code Here

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

    super(PrimitiveObjectInspectorUtils.dateTypeEntry);
  }

  @Override
  public Object copyObject(Object o) {
    return o == null ? null : new LazyDate((LazyDate) o);
  }
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.