FunctionCall

This interface is used by the built-in functions, as well as the user-defined functions.

Methods
Expression[] getArgs()
Get the function arguments.
Expression[] getArgs()
Get the function arguments.
Returns:
argument list
String getName()
Get the name of the function.
String getName()
Get the name of the function.
Returns:
the name
String getSQL()
Get the SQL snippet of the function (including arguments).
String getSQL()
Get the SQL snippet of the function (including arguments).
Returns:
the SQL snippet.
int getType()
Get the data type.
int getType()
Get the data type.
Returns:
the data type
ValueResultSet getValueForColumnList(Session session, Expression[] nullArgs)
Get an empty result set with the column names set.
ValueResultSet getValueForColumnList(Session session, Expression[] nullArgs)
Get an empty result set with the column names set.
Parameters:
session - the session
nullArgs - the argument list (some arguments may be null)
Returns:
the empty result set
boolean isBufferResultSetToLocalTemp()
Should the return value ResultSet be buffered in a local temporary file?
boolean isBufferResultSetToLocalTemp()
Should the return value ResultSet be buffered in a local temporary file?
Returns:
true if it should be.
boolean isDeterministic()
Whether the function always returns the same result for the same parameters.
boolean isDeterministic()
Whether the function always returns the same result for the same parameters.
Returns:
true if it does
Expression optimize(Session session)
Optimize the function if possible.
Expression optimize(Session session)
Optimize the function if possible.
Parameters:
session - the session
Returns:
the optimized expression