Examples of SettableFloatObjectInspector


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

    switch (fromOi.getCategory()) {
    case PRIMITIVE:
      PrimitiveObjectInspector fromPoi = (PrimitiveObjectInspector) fromOi;
      switch (fromPoi.getPrimitiveCategory()) {
      case FLOAT:
        SettableFloatObjectInspector floatOi = (SettableFloatObjectInspector) toOi;
        return floatOi.create((Float) fromPoi.getPrimitiveJavaObject(from));
      case DOUBLE:
        SettableDoubleObjectInspector doubleOi = (SettableDoubleObjectInspector) toOi;
        return doubleOi.create((Double) fromPoi.getPrimitiveJavaObject(from));
      case BOOLEAN:
        SettableBooleanObjectInspector boolOi = (SettableBooleanObjectInspector) 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.