Class RepeatSqlFunction

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

public class RepeatSqlFunction extends SqlFunction
Concats a string to itself n times
Since:
16.0.0
Author:
Tomer Shapira
  • Constructor Details

    • RepeatSqlFunction

      public RepeatSqlFunction()
  • 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 a string arguments to repeat, and an integer n that represents the times to repeats.
      Returns:
      the string that results from concatenating the string to itself n times.