Examples of negateDestructive()


Examples of org.apache.hadoop.hive.common.type.Decimal128.negateDestructive()

  public static void negate(int i, Decimal128 input, DecimalColumnVector outputColVector) {
    Decimal128 result = outputColVector.vector[i];
    try {
      result.update(input);
      result.negateDestructive();
      result.changeScaleDestructive(outputColVector.scale);
    } catch (ArithmeticException e) {
      outputColVector.noNulls = false;
      outputColVector.isNull[i] = true;
    }
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.