Class StrposFunction

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

public class StrposFunction extends SqlFunction
Returns the position of the character where the first occurrence of the substring appears in a string.
Since:
16.0.0
Author:
Tomer Shapira
  • Constructor Details

    • StrposFunction

      public StrposFunction()
  • 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 two String arguments, a string and a substring.
      Returns:
      index n where the first occurrence of the substring appears in a string.