public class RoundSqlFunction extends SqlFunction
Constructor and Description |
---|
RoundSqlFunction() |
Modifier and Type | Method and Description |
---|---|
Object |
apply(SqlFunctionExecutionContext context)
Rounds the first argument context.getArgument(0) to the number of decimal places specified by
context.getArgument(1).
|
assertNumberOfArguments, assertNumberOfArguments, fromSqlTypeName, isString, isWholeNumber
public Object apply(SqlFunctionExecutionContext context)
apply
in class SqlFunction
context
- contains one or two arguments of type Number.Copyright © GigaSpaces.