Package org.apache.hadoop.hive.common.type

Examples of org.apache.hadoop.hive.common.type.HiveDecimal.longValue()


    case INT:
    case LONG:
      return ((Number) scalar).longValue();
    case DECIMAL:
      HiveDecimal decimalVal = (HiveDecimal) scalar;
      return decimalVal.longValue();
    default:
      throw new HiveException("Unsupported type "+typename+" for cast to Long");
    }
  }
View Full Code Here


    HiveDecimal result = inV.vector[i].getHiveDecimal().multiply(tenE9);
    if (result == null) {
      outV.noNulls = false;
      outV.isNull[i] = true;
    } else {
      outV.vector[i] = result.longValue();
    }
  }
}
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.