public abstract class SqlFunction extends Object
Constructor and Description |
---|
SqlFunction() |
Modifier and Type | Method and Description |
---|---|
abstract Object |
apply(SqlFunctionExecutionContext context)
Defines the action to be performed on the stored object.
|
protected void |
assertNumberOfArguments(int expected,
SqlFunctionExecutionContext context)
Validate the number of arguments a function receives.
|
public abstract Object apply(SqlFunctionExecutionContext context)
context
- contains the arguments, SqlFunctionExecutionContext
RuntimeException
- if wrong input arguments were suppliedprotected void assertNumberOfArguments(int expected, SqlFunctionExecutionContext context)
expected
- number of arguments, according to every function inner logic.context
- the actual received arguments, which are contained in the context.RuntimeException
- if expected doesn't match actual number of arguments in contextCopyright © GigaSpaces.