Class ModSqlFunction

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

public class ModSqlFunction extends SqlFunction
Built in mathematical sql function to perform modulo operation.
Since:
11.0.0
Author:
Tamir Schwarz
  • Constructor Details

    • ModSqlFunction

      public ModSqlFunction()
  • 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 two arguments of either Long/Integer/Double.
      Returns:
      the remainder of context.getArgument(0) divided by context.getArgument(1).