Class SubstrSqlFunction

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

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

    • SubstrSqlFunction

      public SubstrSqlFunction()
  • 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 and one Integer argument n. optionally contains another Integer argument m.
      Returns:
      a substring staring from the n character of the string, if m is given returns m characters starting from n.