Top Description Fields Constructors Methods
org.h2.command.query

public Class AllColumnsForPlan

extends Object
Class Inheritance
Imports
java.util.ArrayList, .HashMap, org.h2.expression.ExpressionVisitor, org.h2.table.Column, .Table, .TableFilter

This information is expensive to compute for large queries, so do so on-demand. Also store the information pre-mapped by table to avoid expensive traversal.

Field Summary

Modifier and TypeField and Description
private final TableFilter[]
private HashMap<Table, ArrayList<Column>>

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public void
add(Column
new column to be added.
newCol
)

Called by ExpressionVisitor.

public ArrayList<Column>

Returns:

all table's referenced columns.
get
(Table
the table.
table
)

Used by index to calculate the cost of a scan.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

filtersback to summary
private final TableFilter[] filters
mapback to summary
private HashMap<Table, ArrayList<Column>> map

Constructor Detail

AllColumnsForPlanback to summary
public AllColumnsForPlan(TableFilter[] filters)

Method Detail

addback to summary
public void add(Column newCol)

Called by ExpressionVisitor.

Parameters
newCol:Column

new column to be added.

getback to summary
public ArrayList<Column> get(Table table)

Used by index to calculate the cost of a scan.

Parameters
table:Table

the table.

Returns:ArrayList<Column>

all table's referenced columns.