Class ToCharSqlFunction

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

public class ToCharSqlFunction extends SqlFunction
Built in conversion sql function to convert Date or Number types to chars.
Since:
11.0.0
Author:
Tamir Schwarz
  • Field Details

  • Constructor Details

    • ToCharSqlFunction

      public ToCharSqlFunction()
  • 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 a argument of type Number or Date and can have an additional format argument. A Number argument should be used with DecimalFormat, a Date argument should be used with SimpleDateFormat. please notice: time zone will always evaluated as GMT.
      Returns:
      a char set of context.getArgument(0) in default format, or in context.getArgument(1) format if specified.