Examples of WritableIntObjectInspector


Examples of org.apache.hadoop.hive.serde2.objectinspector.primitive.WritableIntObjectInspector

  ///@Test
  public void testCollectMaxAggBuffer() throws HiveException {
    MapCollectMaxUDAFEvaluator maxEval = new MapCollectMaxUDAFEvaluator(true);
 
    WritableStringObjectInspector keyOI = (WritableStringObjectInspector) PrimitiveObjectInspectorFactory.getPrimitiveWritableObjectInspector(PrimitiveCategory.STRING);
    WritableIntObjectInspector valOI = (WritableIntObjectInspector) PrimitiveObjectInspectorFactory.getPrimitiveWritableObjectInspector(PrimitiveCategory.INT);
   
   
    maxEval.init( Mode.PARTIAL1, new ObjectInspector[] { keyOI, valOI} );
   
   
View Full Code Here

Examples of org.apache.hadoop.hive.serde2.objectinspector.primitive.WritableIntObjectInspector

  @Test
  public void testCollectMinAggBuffer() throws HiveException {
    MapCollectMaxUDAFEvaluator maxEval = new MapCollectMaxUDAFEvaluator(false);
 
    WritableStringObjectInspector keyOI = (WritableStringObjectInspector) PrimitiveObjectInspectorFactory.getPrimitiveWritableObjectInspector(PrimitiveCategory.STRING);
    WritableIntObjectInspector valOI = (WritableIntObjectInspector) PrimitiveObjectInspectorFactory.getPrimitiveWritableObjectInspector(PrimitiveCategory.INT);
   
   
    maxEval.init( Mode.PARTIAL1, new ObjectInspector[] { keyOI, valOI} );
   
   
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.