use of io.crate.operation.scalar.DoubleScalar in project crate by crate.
the class TrigonometricFunctions method register.
private static void register(ScalarFunctionModule module, String name, DoubleUnaryOperator func) {
for (DataType inputType : DataTypes.NUMERIC_PRIMITIVE_TYPES) {
FunctionIdent ident = new FunctionIdent(name, Collections.singletonList(inputType));
module.register(new DoubleScalar(new FunctionInfo(ident, DataTypes.DOUBLE), func));
}
}
Aggregations