Package org.apache.hadoop.hive.serde2.objectinspector.primitive

Examples of org.apache.hadoop.hive.serde2.objectinspector.primitive.SettableHiveVarcharObjectInspector.create()


      case DECIMAL:
        SettableHiveDecimalObjectInspector decimalOi = (SettableHiveDecimalObjectInspector) toOi;
        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");
View Full Code Here


      case DATE:
        SettableDateObjectInspector dateOi = (SettableDateObjectInspector) toOi;
        return dateOi.create((Date) fromPoi.getPrimitiveJavaObject(from));
      case DECIMAL:
        SettableHiveDecimalObjectInspector decimalOi = (SettableHiveDecimalObjectInspector) toOi;
        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;
View Full Code Here

      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

      case BOOLEAN:
        SettableBooleanObjectInspector boolOi = (SettableBooleanObjectInspector) toOi;
        return boolOi.create((Boolean) fromPoi.getPrimitiveJavaObject(from));
      case INT:
        SettableIntObjectInspector intOi = (SettableIntObjectInspector) toOi;
        return intOi.create((Integer) fromPoi.getPrimitiveJavaObject(from));
      case LONG:
        SettableLongObjectInspector longOi = (SettableLongObjectInspector) toOi;
        return longOi.create((Long) fromPoi.getPrimitiveJavaObject(from));
      case STRING:
        SettableStringObjectInspector strOi = (SettableStringObjectInspector) toOi;
View Full Code Here

      case INT:
        SettableIntObjectInspector intOi = (SettableIntObjectInspector) toOi;
        return intOi.create((Integer) fromPoi.getPrimitiveJavaObject(from));
      case LONG:
        SettableLongObjectInspector longOi = (SettableLongObjectInspector) toOi;
        return longOi.create((Long) fromPoi.getPrimitiveJavaObject(from));
      case STRING:
        SettableStringObjectInspector strOi = (SettableStringObjectInspector) toOi;
        return strOi.create((String) fromPoi.getPrimitiveJavaObject(from));
      case BYTE:
        SettableByteObjectInspector byteOi = (SettableByteObjectInspector) toOi;
View Full Code Here

      case BYTE:
        SettableByteObjectInspector byteOi = (SettableByteObjectInspector) toOi;
        return byteOi.create((Byte) fromPoi.getPrimitiveJavaObject(from));
      case SHORT:
        SettableShortObjectInspector shortOi = (SettableShortObjectInspector) toOi;
        return shortOi.create((Short) fromPoi.getPrimitiveJavaObject(from));
      case BINARY:
        SettableBinaryObjectInspector binOi = (SettableBinaryObjectInspector) toOi;
        return binOi.create((byte[]) fromPoi.getPrimitiveJavaObject(from));
      case TIMESTAMP:
        SettableTimestampObjectInspector timeOi = (SettableTimestampObjectInspector) toOi;
View Full Code Here

      case LONG:
        SettableLongObjectInspector longOi = (SettableLongObjectInspector) toOi;
        return longOi.create((Long) fromPoi.getPrimitiveJavaObject(from));
      case STRING:
        SettableStringObjectInspector strOi = (SettableStringObjectInspector) toOi;
        return strOi.create((String) fromPoi.getPrimitiveJavaObject(from));
      case BYTE:
        SettableByteObjectInspector byteOi = (SettableByteObjectInspector) toOi;
        return byteOi.create((Byte) fromPoi.getPrimitiveJavaObject(from));
      case SHORT:
        SettableShortObjectInspector shortOi = (SettableShortObjectInspector) toOi;
View Full Code Here

      case BINARY:
        SettableBinaryObjectInspector binOi = (SettableBinaryObjectInspector) toOi;
        return binOi.create((byte[]) fromPoi.getPrimitiveJavaObject(from));
      case TIMESTAMP:
        SettableTimestampObjectInspector timeOi = (SettableTimestampObjectInspector) toOi;
        return timeOi.create((Timestamp) fromPoi.getPrimitiveJavaObject(from));
      case DATE:
        SettableDateObjectInspector dateOi = (SettableDateObjectInspector) toOi;
        return dateOi.create((Date) fromPoi.getPrimitiveJavaObject(from));
      case DECIMAL:
        SettableHiveDecimalObjectInspector decimalOi = (SettableHiveDecimalObjectInspector) toOi;
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.