Class ToNumberSqlFunction
java.lang.Object
com.gigaspaces.query.sql.functions.SqlFunction
com.gigaspaces.query.sql.functions.ToNumberSqlFunction
Built in conversion sql function to convert string type to Number.
- Since:
- 11.0.0
- Author:
- Tamir Schwarz
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionapply(SqlFunctionExecutionContext context) Defines the action to be performed on the stored object.Methods inherited from class com.gigaspaces.query.sql.functions.SqlFunction
assertNumberOfArguments, assertNumberOfArguments, fromSqlTypeName, isString, isWholeNumber
-
Field Details
-
DECIMAL_FORMAT_SYMBOLS
-
-
Constructor Details
-
ToNumberSqlFunction
public ToNumberSqlFunction()
-
-
Method Details
-
apply
Description copied from class:SqlFunctionDefines the action to be performed on the stored object.- Specified by:
applyin classSqlFunction- 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.
-