Class ReplaceSqlFunction

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

public class ReplaceSqlFunction extends SqlFunction
Built in string sql function to replace matching subtring with other argument
Since:
15.8.0
Author:
Alon Shoham
  • Constructor Details

    • ReplaceSqlFunction

      public ReplaceSqlFunction()
  • 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 three argument of type string, CharSequence, CharSequence.
      Returns:
      Returns the string context.getArgument(0) with all characters changed to lowercase.