public class TruncSqlFunction extends SqlFunction
Constructor and Description |
---|
TruncSqlFunction() |
Modifier and Type | Method and Description |
---|---|
Object |
apply(SqlFunctionExecutionContext context)
Context can have from 1 to 2 arguments, the first is number ( can be float ), the second one is precision, it is optional,
whole number.
|
NumberFormat |
getDecimalFormatter(Number number,
int precision) |
assertNumberOfArguments, assertNumberOfArguments, fromSqlTypeName, isString, isWholeNumber
public Object apply(SqlFunctionExecutionContext context)
apply
in class SqlFunction
context
- contains the arguments, SqlFunctionExecutionContext
public NumberFormat getDecimalFormatter(Number number, int precision)
Copyright © GigaSpaces.