| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public final void | addDependencies(HashSet<DbObject>
the current set of dependencies dependencies)Overrides org. Add all objects that this table depends on to the hash set. |
| public final Index | addIndex(SessionLocal
the session session, String the name of the index indexName, int the id indexId, IndexColumn[] the index columns cols, int the count of unique columns uniqueColumnCount, IndexType the index type indexType, boolean whether this is a new index create, String the comment indexComment)Implements abstract org. Create an index for this table |
| public final void | addRow(SessionLocal
the session session, Row the row row)Implements abstract org. Add a row to the table and all indexes. |
| public boolean | |
| public final boolean | canGetRowCount(SessionLocal
the session session)Implements abstract org. Check if the row count can be retrieved quickly. |
| public final boolean | |
| public final void | checkSupportAlter()
Implements abstract org. Check if this table supports ALTER TABLE. |
| public final void | close(SessionLocal
the session session)Implements abstract org. Close the table object and flush changes. |
| public final PlanItem | getBestPlanItem(SessionLocal
the session session, int[] per-column comparison bit masks, null means 'always false',
see constants in IndexCondition masks, TableFilter[] all joined table filters filters, int the current table filter index filter, SortOrder the sort order sortOrder, AllColumnsForPlan the set of all columns allColumnsSet)Overrides org. Get the best plan for the given search mask. |
| public String | |
| public String | Returns: the SQL statementif true, then include the OR REPLACE clause orReplace, boolean if true, then include the FORCE clause force)Generate "CREATE" SQL statement for the materialized view. |
| private String | |
| public String | getCreateSQLForCopy(Table
the new table table, String the quoted name quotedName)Overrides org. Build a SQL statement to re-create the object, or to create a copy of the object with a different name or referencing a different table |
| public String | |
| public final ArrayList | |
| public long | getMaxDataModificationId()
Implements abstract org. Get the last data modification id. |
| public String | |
| public final long | getRowCount(SessionLocal
the session session)Implements abstract org. Get the row count for this table. |
| public final long | getRowCountApproximation(SessionLocal
the session session)Implements abstract org. Get the approximated row count for this table. |
| public final Index | getScanIndex(SessionLocal
the session session)Implements abstract org. Get the scan index to iterate through all rows. |
| public Index | getScanIndex(SessionLocal
the session session, int[] the search mask masks, TableFilter[] the table filters filters, int the filter index filter, SortOrder the sort order sortOrder, AllColumnsForPlan all columns allColumnsSet)Overrides org. Get the scan index for this table. |
| public Query | |
| public StringBuilder | getSQL(StringBuilder
string builder builder, int formatting flags sqlFlags)Overrides org. Implements org. Appends the SQL statement of this object to the specified builder. |
| public TableType | |
| public Table | |
| public boolean | isDeterministic()
Implements abstract org. Check if the table is deterministic. |
| public final boolean | |
| public boolean | isQueryComparable()
Overrides org. Check whether the table (or view) contains no columns that prevent index conditions to be used. |
| public final boolean | |
| public void | removeChildrenAndResources(SessionLocal
the session session)Overrides org. Delete all dependent children objects and resources of this object. |
| public final void | removeRow(SessionLocal
the session session, Row the row row)Implements abstract org. Remove a row from the table and all indexes. |
| public void | |
| public final long | truncate(SessionLocal
the session session)Implements abstract org. Remove all rows from the table and indexes. |
| query | back to summary |
|---|---|
| private Query query | |
| querySQL | back to summary |
|---|---|
| private String querySQL | |
| table | back to summary |
|---|---|
| private Table table | |
| MaterializedView | back to summary |
|---|---|
| public MaterializedView(Schema schema, int id, String name, Table table, Query query, String querySQL) | |
| addDependencies | back to summary |
|---|---|
| public final void addDependencies(HashSet<DbObject> dependencies) Overrides org. Doc from org. Add all objects that this table depends on to the hash set. | |
| addIndex | back to summary |
|---|---|
| public final Index addIndex(SessionLocal session, String indexName, int indexId, IndexColumn[] cols, int uniqueColumnCount, IndexType indexType, boolean create, String indexComment) Implements abstract org. Doc from org. Create an index for this table
| |
| addRow | back to summary |
|---|---|
| public final void addRow(SessionLocal session, Row row) Implements abstract org. Doc from org. Add a row to the table and all indexes.
| |
| canDrop | back to summary |
|---|---|
| public boolean canDrop() Implements abstract org. Doc from org. Check if this table can be dropped.
| |
| canGetRowCount | back to summary |
|---|---|
| public final boolean canGetRowCount(SessionLocal session) Implements abstract org. Doc from org. Check if the row count can be retrieved quickly.
| |
| canReference | back to summary |
|---|---|
| public final boolean canReference() Overrides org. Doc from org. Check if this table can be referenced.
| |
| checkSupportAlter | back to summary |
|---|---|
| public final void checkSupportAlter() Implements abstract org. Doc from org. Check if this table supports ALTER TABLE.
| |
| close | back to summary |
|---|---|
| public final void close(SessionLocal session) Implements abstract org. Doc from org. Close the table object and flush changes.
| |
| getBestPlanItem | back to summary |
|---|---|
| public final PlanItem getBestPlanItem(SessionLocal session, int[] masks, TableFilter[] filters, int filter, SortOrder sortOrder, AllColumnsForPlan allColumnsSet) Overrides org. Doc from org. Get the best plan for the given search mask.
| |
| getCreateSQL | back to summary |
|---|---|
| public String getCreateSQL() Implements abstract org. Doc from org. Construct the CREATE ... SQL statement for this object. | |
| getCreateSQL | back to summary |
|---|---|
| public String getCreateSQL(boolean orReplace, boolean force) Generate "CREATE" SQL statement for the materialized view.
| |
| getCreateSQL | back to summary |
|---|---|
| private String getCreateSQL(boolean orReplace, boolean force, String quotedName) | |
| getCreateSQLForCopy | back to summary |
|---|---|
| public String getCreateSQLForCopy(Table table, String quotedName) Overrides org. Doc from org. Build a SQL statement to re-create the object, or to create a copy of the object with a different name or referencing a different table | |
| getDropSQL | back to summary |
|---|---|
| public String getDropSQL() Overrides org. Doc from org. Construct a DROP ... SQL statement for this object. | |
| getIndexes | back to summary |
|---|---|
| public final ArrayList Implements abstract org. Doc from org. Get all indexes for this table. | |
| getMaxDataModificationId | back to summary |
|---|---|
| public long getMaxDataModificationId() Implements abstract org. Doc from org. Get the last data modification id.
| |
| getQuerySQL | back to summary |
|---|---|
| public String getQuerySQL() | |
| getRowCount | back to summary |
|---|---|
| public final long getRowCount(SessionLocal session) Implements abstract org. Doc from org. Get the row count for this table.
| |
| getRowCountApproximation | back to summary |
|---|---|
| public final long getRowCountApproximation(SessionLocal session) Implements abstract org. Doc from org. Get the approximated row count for this table.
| |
| getScanIndex | back to summary |
|---|---|
| public final Index getScanIndex(SessionLocal session) Implements abstract org. Doc from org. Get the scan index to iterate through all rows.
| |
| getScanIndex | back to summary |
|---|---|
| public Index getScanIndex(SessionLocal session, int[] masks, TableFilter[] filters, int filter, SortOrder sortOrder, AllColumnsForPlan allColumnsSet) Overrides org. Doc from org. Get the scan index for this table.
| |
| getSelect | back to summary |
|---|---|
| public Query getSelect() | |
| getSQL | back to summary |
|---|---|
| public StringBuilder getSQL(StringBuilder builder, int sqlFlags) Overrides org. Implements org. Doc from org. Appends the SQL statement of this object to the specified builder.
| |
| getTableType | back to summary |
|---|---|
| public TableType getTableType() Implements abstract org. Doc from org. Get the table type name | |
| getUnderlyingTable | back to summary |
|---|---|
| public Table getUnderlyingTable() | |
| isDeterministic | back to summary |
|---|---|
| public boolean isDeterministic() Implements abstract org. Doc from org. Check if the table is deterministic.
| |
| isInsertable | back to summary |
|---|---|
| public final boolean isInsertable() Overrides org. Doc from org. Returns whether this table is insertable.
| |
| isQueryComparable | back to summary |
|---|---|
| public boolean isQueryComparable() Overrides org. Doc from org. Check whether the table (or view) contains no columns that prevent index conditions to be used. For example, a view that contains the ROWNUM() pseudo-column prevents this.
| |
| isView | back to summary |
|---|---|
| public final boolean isView() Overrides org.
| |
| removeChildrenAndResources | back to summary |
|---|---|
| public void removeChildrenAndResources(SessionLocal session) Overrides org. Doc from org. Delete all dependent children objects and resources of this object.
| |
| removeRow | back to summary |
|---|---|
| public final void removeRow(SessionLocal session, Row row) Implements abstract org. Doc from org. Remove a row from the table and all indexes.
| |
| replace | back to summary |
|---|---|
| public void replace(Table table, Query query, String querySQL) | |
| truncate | back to summary |
|---|---|
| public final long truncate(SessionLocal session) Implements abstract org. Doc from org. Remove all rows from the table and indexes.
| |