Class TruncSqlFunction
java.lang.Object
com.gigaspaces.query.sql.functions.SqlFunction
com.gigaspaces.query.sql.functions.TruncSqlFunction
- Since:
- 16.0.0
- Author:
- Evgeny Fisher
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionapply(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.getDecimalFormatter(Number number, int precision) Methods inherited from class com.gigaspaces.query.sql.functions.SqlFunction
assertNumberOfArguments, assertNumberOfArguments, fromSqlTypeName, isString, isWholeNumber
-
Constructor Details
-
TruncSqlFunction
public TruncSqlFunction()
-
-
Method Details
-
apply
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.- Specified by:
applyin classSqlFunction- Parameters:
context- contains the arguments,SqlFunctionExecutionContext- Returns:
- The Stored object after applying the action
-
getDecimalFormatter
-