Class ExtractSqlFunction
java.lang.Object
com.gigaspaces.query.sql.functions.SqlFunction
com.gigaspaces.query.sql.functions.extended.ExtractSqlFunction
Extract function, implementation is in the xap-jdbc module, designed to run only with the Data Gateway
- Since:
- 16.0
- Author:
- Mishel Liberman
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionapply(SqlFunctionExecutionContext context) Defines the action to be performed on the stored object.Methods inherited from class com.gigaspaces.query.sql.functions.SqlFunction
assertNumberOfArguments, assertNumberOfArguments, fromSqlTypeName, isString, isWholeNumber
-
Constructor Details
-
ExtractSqlFunction
public ExtractSqlFunction()
-
-
Method Details
-
apply
Description copied from class:SqlFunctionDefines the action to be performed on the stored object.- Specified by:
applyin classSqlFunction- Parameters:
context- contains 2 arguments, first is the symbol of what to extract, second is the date to extract from- Returns:
- a double value representing the extracted symbol from the date
-