public static Double computeValue(Double number) {
    return number == null ? 0 : number;
  }
VectorPTFEvaluatorHelper is a helper class for vector ptf operations.
ql/src/java/org/apache/hadoop/hive/ql/exec/vector/ptf/VectorPTFEvaluatorHelper.java