Class RightSqlFunction

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

public class RightSqlFunction extends SqlFunction
Returns a substring of a given string starting from the right
Since:
16.0.0
Author:
Tomer Shapira
  • Constructor Details

    • RightSqlFunction

      public RightSqlFunction()
  • 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.
      Returns:
      if n > 0 the n last characters, else all characters but the first |n| charecters from t.