| Modifier and Type | Class and Description |
|---|---|
| private class |
| Modifier and Type | Field and Description |
|---|---|
| private TableValueConstructor. | |
| private double | |
| private final ArrayList | |
| pack-priv TableValueConstructorTable | table
The table. |
| Access | Constructor and Description |
|---|---|
| public | TableValueConstructor(SessionLocal
the session session, ArrayList<ArrayList<Expression>> the rows rows)Creates new instance of table value constructor. |
| Modifier and Type | Method and Description |
|---|---|
| public void | addGlobalCondition(Parameter
the parameter param, int the column index (0 meaning the first column) columnId, int the comparison type comparisonType)Implements abstract org. Add a condition to the query. |
| public boolean | allowGlobalConditions()
Implements abstract org. Check whether adding condition to the query is allowed. |
| private void | |
| public void | fireBeforeSelectTriggers()
Implements abstract org. Call the before triggers on all tables. |
| public double | getCost()
Implements abstract org. Calculate the cost to execute this query. |
| public Expression | getIfSingleRow()
Overrides org. If this query is determined as a single-row query, returns a replacement expression. |
| public StringBuilder | getPlanSQL(StringBuilder
string builder builder, int formatting flags sqlFlags)Overrides org. Appends the SQL statement with the execution plan. |
| public HashSet | getTables()
Implements abstract org. Get all tables that are involved in this query. |
| public static void | getValuesSQL(StringBuilder
string builder builder, int formatting flags sqlFlags, ArrayList<ArrayList<Expression>> the values rows)Appends the SQL of the values to the specified string builder.. |
| public static void | getVisibleResult(SessionLocal
the session session, ResultTarget the result result, Column[] the columns columns, ArrayList<ArrayList<Expression>> the rows with data rows)Appends visible columns of all rows to the specified result. |
| public void | |
| public boolean | isConstantQuery()
Overrides org. Check if this query will always return the same value and has no side effects. |
| public boolean | isEverything(ExpressionVisitor
the visitor visitor)Implements abstract org. Check if this expression and all sub-expressions can fulfill a criteria. |
| public boolean | |
| public void | mapColumns(ColumnResolver
the resolver resolver, int the subquery level (0 is the top level query, 1 is the first
subquery level) level, boolean whether this method was called from the outer query outer)Implements abstract org. Map the columns to the given column resolver. |
| public void | |
| public void | |
| protected ResultInterface | queryWithoutCache(long
the limit as specified in the JDBC method call limit, ResultTarget the target to write results to target)Implements abstract org. Execute the query without checking the cache. |
| public void | setEvaluatable(TableFilter
the table filter tableFilter, boolean the new value b)Implements abstract org. Change the evaluatable flag. |
| public void | setForUpdate(ForUpdate
the new FOR UPDATE clause forUpdate)Implements abstract org. Set the FOR UPDATE clause. |
| public Table | toTable(String
alias name for the view alias, Column[] column templates, or columnTemplates, ArrayList<Parameter> nullthe parameters parameters, boolean if true, a system session will be used for the view forCreateView, Query the top level query topQuery)Overrides org. Converts this query to a table or a view. |
| public void | updateAggregate(SessionLocal
the session s, int select stage stage)Implements abstract org. Update all aggregate function values. |
| columnResolver | back to summary |
|---|---|
| private TableValueConstructor. | |
| cost | back to summary |
|---|---|
| private double cost | |
| rows | back to summary |
|---|---|
| private final ArrayList<ArrayList<Expression>> rows | |
| table | back to summary |
|---|---|
| pack-priv TableValueConstructorTable table The table. | |
| TableValueConstructor | back to summary |
|---|---|
| public TableValueConstructor(SessionLocal session, ArrayList<ArrayList<Expression>> rows) Creates new instance of table value constructor.
| |
| addGlobalCondition | back to summary |
|---|---|
| public void addGlobalCondition(Parameter param, int columnId, int comparisonType) Implements abstract org. Doc from org. Add a condition to the query. This is used for views. | |
| allowGlobalConditions | back to summary |
|---|---|
| public boolean allowGlobalConditions() Implements abstract org. Doc from org. Check whether adding condition to the query is allowed. This is not allowed for views that have an order by and a limit, as it would affect the returned results.
| |
| createTable | back to summary |
|---|---|
| private void createTable() | |
| fireBeforeSelectTriggers | back to summary |
|---|---|
| public void fireBeforeSelectTriggers() Implements abstract org. Doc from org. Call the before triggers on all tables.
| |
| getCost | back to summary |
|---|---|
| public double getCost() Implements abstract org. Doc from org. Calculate the cost to execute this query.
| |
| getIfSingleRow | back to summary |
|---|---|
| public Expression getIfSingleRow() Overrides org. Doc from org. If this query is determined as a single-row query, returns a replacement expression.
| |
| getPlanSQL | back to summary |
|---|---|
| public StringBuilder getPlanSQL(StringBuilder builder, int sqlFlags) Overrides org. Doc from org. Appends the SQL statement with the execution plan.
| |
| getTables | back to summary |
|---|---|
| public HashSet Implements abstract org. Doc from org. Get all tables that are involved in this query. | |
| getValuesSQL | back to summary |
|---|---|
| public static void getValuesSQL(StringBuilder builder, int sqlFlags, ArrayList<ArrayList<Expression>> rows) Appends the SQL of the values to the specified string builder..
| |
| getVisibleResult | back to summary |
|---|---|
| public static void getVisibleResult(SessionLocal session, ResultTarget result, Column[] columns, ArrayList<ArrayList<Expression>> rows) Appends visible columns of all rows to the specified result.
| |
| init | back to summary |
|---|---|
| public void init() Implements abstract org. Doc from org. Initialize the query.
| |
| isConstantQuery | back to summary |
|---|---|
| public boolean isConstantQuery() Overrides org. Doc from org. Check if this query will always return the same value and has no side effects.
| |
| isEverything | back to summary |
|---|---|
| public boolean isEverything(ExpressionVisitor visitor) Implements abstract org. Doc from org. Check if this expression and all sub-expressions can fulfill a criteria. If any part returns false, the result is false.
| |
| isUnion | back to summary |
|---|---|
| public boolean isUnion() Implements abstract org. Doc from org. Check if this is a UNION query.
| |
| mapColumns | back to summary |
|---|---|
| public void mapColumns(ColumnResolver resolver, int level, boolean outer) Implements abstract org. Doc from org. Map the columns to the given column resolver.
| |
| prepareExpressions | back to summary |
|---|---|
| public void prepareExpressions() Implements abstract org.
| |
| preparePlan | back to summary |
|---|---|
| public void preparePlan() Implements abstract org.
| |
| queryWithoutCache | back to summary |
|---|---|
| protected ResultInterface queryWithoutCache(long limit, ResultTarget target) Implements abstract org. Doc from org. Execute the query without checking the cache. If a target is specified, the results are written to it, and the method returns null. If no target is specified, a new LocalResult is created and returned.
| |
| setEvaluatable | back to summary |
|---|---|
| public void setEvaluatable(TableFilter tableFilter, boolean b) Implements abstract org. Doc from org. Change the evaluatable flag. This is used when building the execution plan.
| |
| setForUpdate | back to summary |
|---|---|
| public void setForUpdate(ForUpdate forUpdate) Implements abstract org. Doc from org. Set the FOR UPDATE clause. | |
| toTable | back to summary |
|---|---|
| public Table toTable(String alias, Column[] columnTemplates, ArrayList<Parameter> parameters, boolean forCreateView, Query topQuery) Overrides org. Doc from org. Converts this query to a table or a view.
| |
| updateAggregate | back to summary |
|---|---|
| public void updateAggregate(SessionLocal s, int stage) Implements abstract org. Doc from org. Update all aggregate function values.
| |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv Value[] |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public Column | findColumn(String
the column name, must be a derived name if this column
resolver has a derived column list name)Implements org. Get the column with the specified name. |
| public Column[] | |
| public Value | getValue(Column
the column column)Implements org. Get the value for the given column. |
| public Expression | optimize(ExpressionColumn
the expression column expressionColumn, Column the column column)Overrides default org. Get the expression that represents this column. |
| currentRow | back to summary |
|---|---|
| pack-priv Value[] currentRow | |
| TableValueColumnResolver | back to summary |
|---|---|
| pack-priv TableValueColumnResolver() | |
| findColumn | back to summary |
|---|---|
| public Column findColumn(String name) Implements org. Doc from org. Get the column with the specified name. | |
| getColumns | back to summary |
|---|---|
| public Column[] getColumns() Implements org. Doc from org. Get the column list. | |
| getValue | back to summary |
|---|---|
| public Value getValue(Column column) Implements org. Doc from org. Get the value for the given column. | |
| optimize | back to summary |
|---|---|
| public Expression optimize(ExpressionColumn expressionColumn, Column column) Overrides default org. Doc from org. Get the expression that represents this column.
| |