Class ExtractSqlFunction

java.lang.Object
com.gigaspaces.query.sql.functions.SqlFunction
com.gigaspaces.query.sql.functions.extended.ExtractSqlFunction

public class ExtractSqlFunction extends SqlFunction
Extract function, implementation is in the xap-jdbc module, designed to run only with the Data Gateway
Since:
16.0
Author:
Mishel Liberman
  • Constructor Details

    • ExtractSqlFunction

      public ExtractSqlFunction()
  • Method Details

    • apply

      public Object apply(SqlFunctionExecutionContext context)
      Description copied from class: SqlFunction
      Defines the action to be performed on the stored object.
      Specified by:
      apply in class SqlFunction
      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