Class ToNumberSqlFunction

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

public class ToNumberSqlFunction extends SqlFunction
Built in conversion sql function to convert string type to Number.
Since:
11.0.0
Author:
Tamir Schwarz
  • Field Details

  • Constructor Details

    • ToNumberSqlFunction

      public ToNumberSqlFunction()
  • 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 - which contains an argument of type string and can have an additional format argument.
      Returns:
      Number with corresponding value to context.getArgument(0), in format context.getArgument(1) if exists.