Class SqlRandIntegerFunction


public class SqlRandIntegerFunction extends SqlFunction
The RAND_INTEGER function. There are two overloads:
  • RAND_INTEGER(bound) returns a random integer between 0 and bound - 1
  • RAND_INTEGER(seed, bound) returns a random integer between 0 and bound - 1, initializing the random number generator with seed on first call
  • Constructor Details

    • SqlRandIntegerFunction

      public SqlRandIntegerFunction()
  • Method Details

    • isDeterministic

      public boolean isDeterministic()
      Description copied from class: SqlOperator
      Returns whether a call to this operator is guaranteed to always return the same result given the same operands; true is assumed by default.
      Overrides:
      isDeterministic in class SqlOperator
    • isDynamicFunction

      public boolean isDynamicFunction()
      Description copied from class: SqlOperator
      Returns whether it is unsafe to cache query plans referencing this operator; false is assumed by default.
      Overrides:
      isDynamicFunction in class SqlOperator