Package org.h2.expression.function.table
Class JavaTableFunction
java.lang.Object
org.h2.expression.function.table.TableFunction
org.h2.expression.function.table.JavaTableFunction
- All Implemented Interfaces:
ExpressionWithVariableParameters,NamedExpression,HasSQL
This class wraps a user-defined function.
-
Field Summary
Fields inherited from class org.h2.expression.function.table.TableFunction
argsFields inherited from interface org.h2.util.HasSQL
ADD_PLAN_INFORMATION, DEFAULT_SQL_FLAGS, NO_CASTS, QUOTE_ONLY_WHEN_REQUIRED, REPLACE_LOBS_FOR_TRACE, TRACE_SQL_FLAGS -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetName()Get the name.getSQL(StringBuilder builder, int sqlFlags) Appends the SQL statement of this object to the specified builder.getValue(SessionLocal session) Get a result with.getValueTemplate(SessionLocal session) Get an empty result with the column names set.booleanWhether the function always returns the same result for the same parameters.voidoptimize(SessionLocal session) Try to optimize this table functionMethods inherited from class org.h2.expression.function.table.TableFunction
addParameter, doneWithParametersMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.h2.util.HasSQL
getSQL, getTraceSQL
-
Constructor Details
-
JavaTableFunction
-
-
Method Details
-
getValue
Description copied from class:TableFunctionGet a result with.- Specified by:
getValuein classTableFunction- Parameters:
session- the session- Returns:
- the result
-
getValueTemplate
Description copied from class:TableFunctionGet an empty result with the column names set.- Specified by:
getValueTemplatein classTableFunction- Parameters:
session- the session- Returns:
- the empty result
-
optimize
Description copied from class:TableFunctionTry to optimize this table function- Overrides:
optimizein classTableFunction- Parameters:
session- the session
-
getSQL
Description copied from interface:HasSQLAppends the SQL statement of this object to the specified builder.- Specified by:
getSQLin interfaceHasSQL- Overrides:
getSQLin classTableFunction- Parameters:
builder- string buildersqlFlags- formatting flags- Returns:
- the specified string builder
-
getName
Description copied from interface:NamedExpressionGet the name.- Returns:
- the name in uppercase
-
isDeterministic
public boolean isDeterministic()Description copied from class:TableFunctionWhether the function always returns the same result for the same parameters.- Specified by:
isDeterministicin classTableFunction- Returns:
- true if it does
-