Class AbsSqlFunction

java.lang.Object
com.gigaspaces.query.sql.functions.SqlFunction
com.gigaspaces.query.sql.functions.AbsSqlFunction

public class AbsSqlFunction extends SqlFunction
Built in mathematical sql function to get absolute value of a parameter.
Since:
11.0.0
Author:
Tamir Schwarz
  • Constructor Details

    • AbsSqlFunction

      public AbsSqlFunction()
  • 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 one parameter of type Number.
      Returns:
      the absolute value of context.getArgument(0), cast to context.getArgument(0).getClass().