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