public final class JavaTableFunction extends TableFunction
argsADD_PLAN_INFORMATION, DEFAULT_SQL_FLAGS, NO_CASTS, QUOTE_ONLY_WHEN_REQUIRED, REPLACE_LOBS_FOR_TRACE, TRACE_SQL_FLAGS| Constructor and Description |
|---|
JavaTableFunction(FunctionAlias functionAlias,
Expression[] args) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getName()
Get the name.
|
java.lang.StringBuilder |
getSQL(java.lang.StringBuilder builder,
int sqlFlags)
Appends the SQL statement of this object to the specified builder.
|
ResultInterface |
getValue(SessionLocal session)
Get a result with.
|
ResultInterface |
getValueTemplate(SessionLocal session)
Get an empty result with the column names set.
|
boolean |
isDeterministic()
Whether the function always returns the same result for the same
parameters.
|
void |
optimize(SessionLocal session)
Try to optimize this table function
|
addParameter, doneWithParametersclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetSQL, getTraceSQLpublic JavaTableFunction(FunctionAlias functionAlias, Expression[] args)
public ResultInterface getValue(SessionLocal session)
TableFunctiongetValue in class TableFunctionsession - the sessionpublic ResultInterface getValueTemplate(SessionLocal session)
TableFunctiongetValueTemplate in class TableFunctionsession - the sessionpublic void optimize(SessionLocal session)
TableFunctionoptimize in class TableFunctionsession - the sessionpublic java.lang.StringBuilder getSQL(java.lang.StringBuilder builder,
int sqlFlags)
HasSQLgetSQL in interface HasSQLgetSQL in class TableFunctionbuilder - string buildersqlFlags - formatting flagspublic java.lang.String getName()
NamedExpressionpublic boolean isDeterministic()
TableFunctionisDeterministic in class TableFunction