Examples of WritableConstantLongObjectInspector


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

        String typeName = oi.getTypeName();
        if(!BIGINT_TYPE_NAME.equals(typeName)) {
            throw new UDFArgumentException("argument must be a bigint value: "
                    + TypeInfoUtils.getTypeInfoFromObjectInspector(oi));
        }
        WritableConstantLongObjectInspector longOI = (WritableConstantLongObjectInspector) oi;
        return longOI.getWritableConstantValue().get();
    }
View Full Code Here

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

            throw new UDFArgumentException("argument must be a constant value: "
                    + TypeInfoUtils.getTypeInfoFromObjectInspector(numberOI));
        }
        String typeName = numberOI.getTypeName();
        if(BIGINT_TYPE_NAME.equals(typeName)) {
            WritableConstantLongObjectInspector longOI = (WritableConstantLongObjectInspector) numberOI;
            return longOI.getWritableConstantValue().get();
        } else if(INT_TYPE_NAME.equals(typeName)) {
            WritableConstantIntObjectInspector intOI = (WritableConstantIntObjectInspector) numberOI;
            return (long) intOI.getWritableConstantValue().get();
        } else if(SMALLINT_TYPE_NAME.equals(typeName)) {
            WritableConstantShortObjectInspector shortOI = (WritableConstantShortObjectInspector) numberOI;
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.