| Modifier and Type | Class and Description |
|---|---|
| private class | SelectUnion.
Lazy execution for this union. |
| public static enum |
| Modifier and Type | Field and Description |
|---|---|
| private ForUpdate | |
| pack-priv final Query | left
The left hand side of the union (the first subquery). |
| pack-priv final Query | right
The right hand side of the union (the second subquery). |
| private final SelectUnion. |
| Access | Constructor and Description |
|---|---|
| public |
| 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 Value[] | |
| private LocalResult | |
| 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 LocalResult | |
| public ForUpdate | |
| public Query | |
| public StringBuilder | getPlanSQL(StringBuilder
string builder builder, int formatting flags sqlFlags)Overrides org. Appends the SQL statement with the execution plan. |
| public Query | |
| public HashSet | getTables()
Implements abstract org. Get all tables that are involved in this query. |
| public SelectUnion. | |
| 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 maxRows, 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 void | updateAggregate(SessionLocal
the session s, int select stage stage)Implements abstract org. Update all aggregate function values. |
| forUpdate | back to summary |
|---|---|
| private ForUpdate forUpdate | |
| left | back to summary |
|---|---|
| pack-priv final Query left The left hand side of the union (the first subquery). | |
| right | back to summary |
|---|---|
| pack-priv final Query right The right hand side of the union (the second subquery). | |
| unionType | back to summary |
|---|---|
| private final SelectUnion. | |
| SelectUnion | back to summary |
|---|---|
| public SelectUnion(SessionLocal session, SelectUnion. | |
| 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.
| |
| convert | back to summary |
|---|---|
| private Value[] convert(Value[] values, int columnCount) | |
| createLocalResult | back to summary |
|---|---|
| private LocalResult createLocalResult(int columnCount) | |
| 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.
| |
| getEmptyResult | back to summary |
|---|---|
| public LocalResult getEmptyResult() | |
| getForUpdate | back to summary |
|---|---|
| public ForUpdate getForUpdate() Overrides org. Doc from org. Returns FOR UPDATE clause, if any. | |
| getLeft | back to summary |
|---|---|
| public Query getLeft() | |
| getPlanSQL | back to summary |
|---|---|
| public StringBuilder getPlanSQL(StringBuilder builder, int sqlFlags) Overrides org. Doc from org. Appends the SQL statement with the execution plan.
| |
| getRight | back to summary |
|---|---|
| public Query getRight() | |
| getTables | back to summary |
|---|---|
| public HashSet Implements abstract org. Doc from org. Get all tables that are involved in this query. | |
| getUnionType | back to summary |
|---|---|
| public SelectUnion. | |
| 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 maxRows, 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. | |
| 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 int | |
| pack-priv ResultInterface | |
| pack-priv boolean | |
| pack-priv ResultInterface | |
| pack-priv boolean |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public void | close()
Overrides org. Implements org. Close the result and delete any temporary files |
| protected Value[] | fetchNextRow()
Implements abstract org. Fetch next row or null if none available. |
| public int | getVisibleColumnCount()
Implements org. Get the number of visible columns. |
| public void | reset()
Overrides org. Implements org. Go to the beginning of the result, that means before the first row. |
| columnCount | back to summary |
|---|---|
| pack-priv int columnCount | |
| l | back to summary |
|---|---|
| pack-priv ResultInterface l | |
| leftDone | back to summary |
|---|---|
| pack-priv boolean leftDone | |
| r | back to summary |
|---|---|
| pack-priv ResultInterface r | |
| rightDone | back to summary |
|---|---|
| pack-priv boolean rightDone | |
| LazyResultUnion | back to summary |
|---|---|
| pack-priv LazyResultUnion(Expression[] expressions, int columnCount) | |
| close | back to summary |
|---|---|
| public void close() Overrides org. Implements org. Doc from org. Close the result and delete any temporary files
| |
| fetchNextRow | back to summary |
|---|---|
| protected Value[] fetchNextRow() Implements abstract org. Doc from org. Fetch next row or null if none available. | |
| getVisibleColumnCount | back to summary |
|---|---|
| public int getVisibleColumnCount() Implements org. Doc from org. Get the number of visible columns. More columns may exist internally for sorting or grouping.
| |
| reset | back to summary |
|---|---|
| public void reset() Overrides org. Implements org. Doc from org. Go to the beginning of the result, that means before the first row.
| |
| Modifier and Type | Field and Description |
|---|---|
| public static final SelectUnion. | EXCEPT
The type of an EXCEPT statement. |
| public static final SelectUnion. | INTERSECT
The type of an INTERSECT statement. |
| public static final SelectUnion. | UNION
The type of a UNION statement. |
| public static final SelectUnion. | UNION_ALL
The type of a UNION ALL statement. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static SelectUnion. | |
| public static SelectUnion. |
| EXCEPT | back to summary |
|---|---|
| public static final SelectUnion. The type of an EXCEPT statement. | |
| INTERSECT | back to summary |
|---|---|
| public static final SelectUnion. The type of an INTERSECT statement. | |
| UNION | back to summary |
|---|---|
| public static final SelectUnion. The type of a UNION statement. | |
| UNION_ALL | back to summary |
|---|---|
| public static final SelectUnion. The type of a UNION ALL statement. | |
| UnionType | back to summary |
|---|---|
| private UnionType() | |
| valueOf | back to summary |
|---|---|
| public static SelectUnion. | |
| values | back to summary |
|---|---|
| public static SelectUnion. | |