|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.h2.expression.Expression
org.h2.expression.Function
org.h2.expression.TableFunction
public class TableFunction
Implementation of the functions TABLE(..) and TABLE_DISTINCT(..).
Field Summary |
---|
Method Summary | |
---|---|
protected void |
checkParameterCount(int len)
Check if the parameter count is correct. |
Expression[] |
getExpressionColumns(Session session)
If this expression consists of column expressions it should return them. |
java.lang.String |
getName()
Get the name of the function. |
long |
getRowCount()
|
java.lang.String |
getSQL()
Get the SQL statement of this expression. |
Value |
getValue(Session session)
Return the resulting value for the current row. |
ValueResultSet |
getValueForColumnList(Session session,
Expression[] nullArgs)
Get an empty result set with the column names set. |
void |
setColumns(java.util.ArrayList<Column> columns)
|
Methods inherited from class org.h2.expression.Function |
---|
doneWithParameters, getArgs, getCost, getDisplaySize, getFunction, getFunctionInfo, getFunctionType, getParameterCount, getPrecision, getScale, getType, isDatePart, isDeterministic, isEverything, mapColumns, optimize, setDataType, setDataType, setEvaluatable, setParameter, updateAggregate |
Methods inherited from class org.h2.expression.Expression |
---|
addFilterConditions, createIndexConditions, getAlias, getBooleanValue, getColumnName, getExpressionColumns, getExpressionColumns, getNonAliasExpression, getNotIfPossible, getNullable, getSchemaName, getTableAlias, getTableName, isAutoIncrement, isConstant, isEverything, isValueSet, isWildcard, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Method Detail |
---|
public Value getValue(Session session)
Expression
getValue
in interface FunctionCall
getValue
in class Function
session
- the session
protected void checkParameterCount(int len)
Function
checkParameterCount
in class Function
len
- the number of parameters setpublic java.lang.String getSQL()
Expression
getSQL
in interface FunctionCall
getSQL
in class Function
public java.lang.String getName()
FunctionCall
getName
in interface FunctionCall
getName
in class Function
public ValueResultSet getValueForColumnList(Session session, Expression[] nullArgs)
FunctionCall
getValueForColumnList
in interface FunctionCall
getValueForColumnList
in class Function
session
- the sessionnullArgs
- the argument list (some arguments may be null)
public void setColumns(java.util.ArrayList<Column> columns)
public long getRowCount()
public Expression[] getExpressionColumns(Session session)
Expression
getExpressionColumns
in class Expression
session
- the session
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |