Class CastSqlFunction

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

public class CastSqlFunction extends SqlFunction
Casts a String into the wanted data object
Since:
16.0.0
Author:
Tomer Shapira
  • Constructor Details

    • CastSqlFunction

      public CastSqlFunction()
  • 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 the type to cast to.
      Returns:
      object of the wanted type.