Class SubstringSqlFunction

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

public class SubstringSqlFunction extends SqlFunction
Returns a substring of a given string
Since:
16.0.0
Author:
Tomer Shapira
  • Constructor Details

    • SubstringSqlFunction

      public SubstringSqlFunction()
  • 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 String argument can furthermore contain the following options: -Two strings, the first an SQL regex, the other an escape character -One string, a posix regex -Two integers.
      Returns:
      a substring according to the arguments given.