@Override protected boolean evaluateDouble(double lhs, double rhs, AMutableDouble result) throws HyracksDataException { double res = lhs * rhs; result.setValue(res); return true; }
@Override protected boolean evaluateDouble(double lhs, double rhs, AMutableDouble result) throws HyracksDataException { if (rhs == 0) { return false; // result = NULL } double res = lhs % rhs; result.setValue(res); return true; }
@Override protected boolean evaluateDouble(double lhs, double rhs, AMutableDouble result) { if (rhs == 0) { return false; // result = NULL } double res = lhs / rhs; result.setValue(res); return true; }
@Override protected boolean evaluateDouble(double lhs, double rhs, AMutableDouble result) throws HyracksDataException { double res = lhs - rhs; result.setValue(res); return true; }
@Override protected boolean evaluateDouble(double lhs, double rhs, AMutableDouble result) throws HyracksDataException { double res = lhs + rhs; result.setValue(res); return true; }
@Override protected void processDouble(double arg, IPointable resultPointable) throws HyracksDataException { aDouble.setValue(Math.log10(arg)); serialize(aDouble, doubleSerde, resultPointable); } }
@Override protected void processDouble(double arg, IPointable resultPointable) throws HyracksDataException { aDouble.setValue(Math.tan(arg)); serialize(aDouble, doubleSerde, resultPointable); } }
@Override protected void computeResult(DataOutput out) throws HyracksDataException { double percentRank = first ? 0 : (rank - 1) / divisor; aDouble.setValue(percentRank); serde.serialize(aDouble, out); } }
@Override protected void processDouble(double arg, IPointable resultPointable) throws HyracksDataException { aDouble.setValue(-arg); serialize(aDouble, doubleSerde, resultPointable); } }
@Override protected void processDouble(double arg, IPointable resultPointable) throws HyracksDataException { aDouble.setValue(Math.atan(arg)); serialize(aDouble, doubleSerde, resultPointable); } }
@Override protected void processDouble(double arg, IPointable resultPointable) throws HyracksDataException { aDouble.setValue(Math.floor(arg)); serialize(aDouble, doubleSerde, resultPointable); } }
public void setMetadata(final int index, final double value) throws IOException { fieldValueBufferOutputs[index].writeByte(fieldTypeTags[index]); mutableDouble.setValue(value); IDataParser.toBytes(mutableDouble, fieldValueBuffers[index], doubleSerde); }
@Override protected void processDouble(double arg, IPointable resultPointable) throws HyracksDataException { aDouble.setValue(Math.sqrt(arg)); serialize(aDouble, doubleSerde, resultPointable); } }
@Override protected void processDouble(double arg, IPointable resultPointable) throws HyracksDataException { aDouble.setValue(Math.ceil(arg)); serialize(aDouble, doubleSerde, resultPointable); } }
@Override protected void processDouble(double arg, IPointable resultPointable) throws HyracksDataException { aDouble.setValue(Math.exp(arg)); serialize(aDouble, doubleSerde, resultPointable); } }
@Override protected void processDouble(double arg, IPointable resultPointable) throws HyracksDataException { aDouble.setValue(Math.acos(arg)); serialize(aDouble, doubleSerde, resultPointable); } }
@Override protected void processDouble(double arg, IPointable resultPointable) throws HyracksDataException { aDouble.setValue(Math.sinh(arg)); serialize(aDouble, doubleSerde, resultPointable); }
@Override protected void processDouble(double arg, IPointable resultPointable) throws HyracksDataException { if (arg >= 0.0d) { resultPointable.set(argPtr); return; } aDouble.setValue(0.0d - arg); serialize(aDouble, doubleSerde, resultPointable); } }
@Override protected void processDouble(double arg, IPointable resultPointable) throws HyracksDataException { aDouble.setValue(Math.cosh(arg)); serialize(aDouble, doubleSerde, resultPointable); } }
public void nextDouble(IPointable resultPointable) throws HyracksDataException { aDouble.setValue(random.nextDouble()); resultStorage.reset(); doubleSerde.serialize(aDouble, dataOutput); resultPointable.set(resultStorage); } }