@Test public void radians_missing_value() { FunctionExpression radians = dsl.radians(DSL.ref(DOUBLE_TYPE_MISSING_VALUE_FIELD, DOUBLE)); assertEquals(DOUBLE, radians.type()); assertTrue(radians.valueOf(valueEnv()).isMissing()); }
private static FunctionResolver radians() { return FunctionDSL.define(BuiltinFunctionName.RADIANS.getName(), ExprCoreType.numberTypes().stream() .map(type -> FunctionDSL.impl(FunctionDSL.nullMissingHandling( v -> new ExprDoubleValue(Math.toRadians(v.doubleValue()))), DOUBLE, type)).collect(Collectors.toList())); }
MathematicalFunction { private static FunctionResolver radians() { return FunctionDSL.define(BuiltinFunctionName.RADIANS.getName(), ExprCoreType.numberTypes().stream() .map(type -> FunctionDSL.impl(FunctionDSL.nullMissingHandling( v -> new ExprDoubleValue(Math.toRadians(v.doubleValue()))), DOUBLE, type)).collect(Collectors.toList())); } }
MathematicalFunction { private static FunctionResolver radians() { return FunctionDSL.define(BuiltinFunctionName.RADIANS.getName(), ExprCoreType.numberTypes().stream() .map(type -> FunctionDSL.impl(FunctionDSL.nullMissingHandling( v -> new ExprDoubleValue(Math.toRadians(v.doubleValue()))), DOUBLE, type)).collect(Collectors.toList())); }  }
MathematicalFunction { private static FunctionResolver radians() { return FunctionDSL.define(BuiltinFunctionName.RADIANS.getName(), ExprCoreType.numberTypes().stream() .map(type -> FunctionDSL.impl(FunctionDSL.nullMissingHandling( v -> new ExprDoubleValue(Math.toRadians(v.doubleValue()))), DOUBLE, type)).collect(Collectors.toList())); }  static void register(BuiltinFunctionRepository repository); }
MathematicalFunction { private static FunctionResolver radians() { return FunctionDSL.define(BuiltinFunctionName.RADIANS.getName(), ExprCoreType.numberTypes().stream() .map(type -> FunctionDSL.impl(FunctionDSL.nullMissingHandling( v -> new ExprDoubleValue(Math.toRadians(v.doubleValue()))), DOUBLE, type)).collect(Collectors.toList())); }  static void register(BuiltinFunctionRepository repository);  }