public void writeValue(DoubleValue value, ValueFields valueFields) { valueFields.setDoubleValue(value.getValue()); }
public void writeValue(DoubleValue value, ValueFields valueFields) { valueFields.setDoubleValue(value.getValue()); }
protected Double getCollectResultValue(TypedValue collectResultValue) { // the built-in collect aggregators return only numbers if(collectResultValue instanceof IntegerValue) { return ((IntegerValue) collectResultValue).getValue().doubleValue(); } else if(collectResultValue instanceof LongValue) { return ((LongValue) collectResultValue).getValue().doubleValue(); } else if(collectResultValue instanceof DoubleValue) { return ((DoubleValue) collectResultValue).getValue(); } else { throw LOG.collectResultValueOfUnsupportedTypeException(collectResultValue); } }
protected Double getCollectResultValue(TypedValue collectResultValue) { // the built-in collect aggregators return only numbers if(collectResultValue instanceof IntegerValue) { return ((IntegerValue) collectResultValue).getValue().doubleValue(); } else if(collectResultValue instanceof LongValue) { return ((LongValue) collectResultValue).getValue().doubleValue(); } else if(collectResultValue instanceof DoubleValue) { return ((DoubleValue) collectResultValue).getValue(); } else { throw LOG.collectResultValueOfUnsupportedTypeException(collectResultValue); } }
public void writeValue(DoubleValue value, ValueFields valueFields) { valueFields.setDoubleValue(value.getValue()); }
protected Double getCollectResultValue(TypedValue collectResultValue) { // the built-in collect aggregators return only numbers if(collectResultValue instanceof IntegerValue) { return ((IntegerValue) collectResultValue).getValue().doubleValue(); } else if(collectResultValue instanceof LongValue) { return ((LongValue) collectResultValue).getValue().doubleValue(); } else if(collectResultValue instanceof DoubleValue) { return ((DoubleValue) collectResultValue).getValue(); } else { throw LOG.collectResultValueOfUnsupportedTypeException(collectResultValue); } }