Top Description Fields Constructors Methods
org.h2.expression.function.table

public final Class ArrayTableFunction

extends TableFunction
Class Inheritance
Imports
java.util.ArrayList, org.h2.api.ErrorCode, org.h2.engine.Database, .SessionLocal, org.h2.expression.Expression, .ExpressionColumn, org.h2.message.DbException, org.h2.result.LocalResult, .ResultInterface, org.h2.table.Column, org.h2.util.json.JSONArray, .JSONValue, org.h2.value.Value, .ValueCollectionBase, .ValueInteger, .ValueJson, .ValueNull

A table value function.

Field Summary

Modifier and TypeField and Description
private Column[]
private final int
private static final String[]
public static final int
TABLE

TABLE() (non-standard).

public static final int
TABLE_DISTINCT

TABLE_DISTINCT() (non-standard).

public static final int
UNNEST

UNNEST().

Inherited from org.h2.expression.function.table.TableFunction:
args

Constructor Summary

AccessConstructor and Description
public
ArrayTableFunction(int function)

Method Summary

Modifier and TypeMethod and Description
public int
public String
public StringBuilder
getSQL(StringBuilder
string builder
builder
,
int
formatting flags
sqlFlags
)

Overrides org.h2.expression.function.table.TableFunction.getSQL.

Implements org.h2.util.HasSQL.getSQL.

Appends the SQL statement of this object to the specified builder.

private ResultInterface
getTable(SessionLocal session, boolean onlyColumnList)

public ResultInterface
getValue(SessionLocal
the session
session
)

Implements abstract org.h2.expression.function.table.TableFunction.getValue.

Get a result with.

public ResultInterface
getValueTemplate(SessionLocal
the session
session
)

Implements abstract org.h2.expression.function.table.TableFunction.getValueTemplate.

Get an empty result with the column names set.

public boolean
isDeterministic()

Implements abstract org.h2.expression.function.table.TableFunction.isDeterministic.

Whether the function always returns the same result for the same parameters.

public void
optimize(SessionLocal
the session
session
)

Overrides org.h2.expression.function.table.TableFunction.optimize.

Try to optimize this table function

public void
Inherited from org.h2.expression.function.table.TableFunction:
addParameterdoneWithParameters

Field Detail

columnsback to summary
private Column[] columns
functionback to summary
private final int function
NAMESback to summary
private static final String[] NAMES
TABLEback to summary
public static final int TABLE

TABLE() (non-standard).

TABLE_DISTINCTback to summary
public static final int TABLE_DISTINCT

TABLE_DISTINCT() (non-standard).

UNNESTback to summary
public static final int UNNEST

UNNEST().

Constructor Detail

ArrayTableFunctionback to summary
public ArrayTableFunction(int function)

Method Detail

getFunctionTypeback to summary
public int getFunctionType()
getNameback to summary
public String getName()

Implements org.h2.expression.function.NamedExpression.getName.

Doc from org.h2.expression.function.NamedExpression.getName.

Get the name.

Returns:String

the name in uppercase

Annotations
@Override
getSQLback to summary
public StringBuilder getSQL(StringBuilder builder, int sqlFlags)

Overrides org.h2.expression.function.table.TableFunction.getSQL.

Implements org.h2.util.HasSQL.getSQL.

Doc from org.h2.util.HasSQL.getSQL.

Appends the SQL statement of this object to the specified builder.

Parameters
builder:StringBuilder

string builder

sqlFlags:int

formatting flags

Returns:StringBuilder

the specified string builder

Annotations
@Override
getTableback to summary
private ResultInterface getTable(SessionLocal session, boolean onlyColumnList)
getValueback to summary
public ResultInterface getValue(SessionLocal session)

Implements abstract org.h2.expression.function.table.TableFunction.getValue.

Doc from org.h2.expression.function.table.TableFunction.getValue.

Get a result with.

Parameters
session:SessionLocal

the session

Returns:ResultInterface

the result

Annotations
@Override
getValueTemplateback to summary
public ResultInterface getValueTemplate(SessionLocal session)

Implements abstract org.h2.expression.function.table.TableFunction.getValueTemplate.

Doc from org.h2.expression.function.table.TableFunction.getValueTemplate.

Get an empty result with the column names set.

Parameters
session:SessionLocal

the session

Returns:ResultInterface

the empty result

Annotations
@Override
isDeterministicback to summary
public boolean isDeterministic()

Implements abstract org.h2.expression.function.table.TableFunction.isDeterministic.

Doc from org.h2.expression.function.table.TableFunction.isDeterministic.

Whether the function always returns the same result for the same parameters.

Returns:boolean

true if it does

Annotations
@Override
optimizeback to summary
public void optimize(SessionLocal session)

Overrides org.h2.expression.function.table.TableFunction.optimize.

Doc from org.h2.expression.function.table.TableFunction.optimize.

Try to optimize this table function

Parameters
session:SessionLocal

the session

Annotations
@Override
setColumnsback to summary
public void setColumns(ArrayList<Column> columns)