Examples of SettableHiveVarcharObjectInspector


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

      throw new UDFArgumentException(
          "The function VARCHAR takes only primitive types");
    }

    // Check if this UDF has been provided with type params for the output varchar type
    SettableHiveVarcharObjectInspector outputOI;
    if (typeParams != null) {
      outputOI = (SettableHiveVarcharObjectInspector)
          PrimitiveObjectInspectorFactory.getPrimitiveWritableObjectInspector(
              PrimitiveObjectInspectorUtils.getTypeEntryFromTypeSpecs(
                  PrimitiveCategory.VARCHAR, typeParams));
View Full Code Here

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

        return decimalOi.create((HiveDecimal) fromPoi.getPrimitiveJavaObject(from));
      case CHAR:
        SettableHiveCharObjectInspector charOi = (SettableHiveCharObjectInspector) toOi;
        return charOi.create((HiveChar) fromPoi.getPrimitiveJavaObject(from));
      case VARCHAR:
        SettableHiveVarcharObjectInspector varcharOi = (SettableHiveVarcharObjectInspector) toOi;
        return varcharOi.create((HiveVarchar) fromPoi.getPrimitiveJavaObject(from));
      case VOID:
        throw new IllegalArgumentException("Void type is not supported yet");
      default:
        throw new IllegalArgumentException("Unknown primitive type "
            + (fromPoi).getPrimitiveCategory());
View Full Code Here

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

      throw new UDFArgumentException(
          "The function VARCHAR takes only primitive types");
    }

    // Check if this UDF has been provided with type params for the output varchar type
    SettableHiveVarcharObjectInspector outputOI;
    outputOI = (SettableHiveVarcharObjectInspector)
          PrimitiveObjectInspectorFactory.getPrimitiveWritableObjectInspector(typeInfo);

    converter = new HiveVarcharConverter(argumentOI, outputOI);
    return outputOI;
View Full Code Here

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

      throw new UDFArgumentException(
          "The function VARCHAR takes only primitive types");
    }

    // Check if this UDF has been provided with type params for the output varchar type
    SettableHiveVarcharObjectInspector outputOI;
    outputOI = (SettableHiveVarcharObjectInspector)
          PrimitiveObjectInspectorFactory.getPrimitiveWritableObjectInspector(typeInfo);

    converter = new HiveVarcharConverter(argumentOI, outputOI);
    return outputOI;
View Full Code Here

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

      throw new UDFArgumentException(
          "The function VARCHAR takes only primitive types");
    }

    // Check if this UDF has been provided with type params for the output varchar type
    SettableHiveVarcharObjectInspector outputOI;
    if (typeParams != null) {
      outputOI = (SettableHiveVarcharObjectInspector)
          PrimitiveObjectInspectorFactory.getPrimitiveWritableObjectInspector(
              PrimitiveObjectInspectorUtils.getTypeEntryFromTypeSpecs(
                  PrimitiveCategory.VARCHAR, typeParams));
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.