Class CharLengthSqlFunction

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

public class CharLengthSqlFunction extends SqlFunction
Built in string sql function to calculate the length of the string, measured in characters.
Since:
11.0.0
Author:
Tamir Schwarz
  • Constructor Details

    • CharLengthSqlFunction

      public CharLengthSqlFunction()
  • 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 argument of type String/char[].
      Returns:
      the length of the string/char[], context.getArgument(0), measured in characters.