Class RandomSqlFunction

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

public class RandomSqlFunction extends SqlFunction
Built in mathematical sql function to perform random operation.
Since:
16.0
Author:
Mishel Liberman
  • Constructor Details

    • RandomSqlFunction

      public RandomSqlFunction()
  • 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 0 arguments.
      Returns:
      a double value with a positive sign, greater than or equal to 0.0 and less than 1.0