public abstract class QueryExpressionTable extends Table
columns, compareMode, EXCLUSIVE_LOCK, isHidden, READ_LOCK, TYPE_CACHED, TYPE_MEMORY, WRITE_LOCKAGGREGATE, comment, COMMENT, CONSTANT, CONSTRAINT, database, DOMAIN, FUNCTION_ALIAS, INDEX, RIGHT, ROLE, SCHEMA, SEQUENCE, SETTING, SYNONYM, TABLE_OR_VIEW, trace, TRIGGER, USERADD_PLAN_INFORMATION, DEFAULT_SQL_FLAGS, NO_CASTS, QUOTE_ONLY_WHEN_REQUIRED, REPLACE_LOBS_FOR_TRACE, TRACE_SQL_FLAGS| 限定符和类型 | 方法和说明 |
|---|---|
void |
addDependencies(HashSet<DbObject> dependencies)
Add all objects that this table depends on to the hash set.
|
Index |
addIndex(SessionLocal session,
String indexName,
int indexId,
IndexColumn[] cols,
int uniqueColumnCount,
IndexType indexType,
boolean create,
String indexComment)
Create an index for this table
|
void |
addRow(SessionLocal session,
Row row)
Add a row to the table and all indexes.
|
boolean |
canGetRowCount(SessionLocal session)
Check if the row count can be retrieved quickly.
|
boolean |
canReference()
Check if this table can be referenced.
|
void |
checkSupportAlter()
Check if this table supports ALTER TABLE.
|
void |
close(SessionLocal session)
Close the table object and flush changes.
|
static List<Column> |
createQueryColumnTemplateList(String[] cols,
Query theQuery,
String[] querySQLOutput)
Creates a list of column templates from a query (usually from WITH query,
but could be any query)
|
PlanItem |
getBestPlanItem(SessionLocal session,
int[] masks,
TableFilter[] filters,
int filter,
SortOrder sortOrder,
AllColumnsForPlan allColumnsSet)
Get the best plan for the given search mask.
|
ArrayList<Index> |
getIndexes()
Get all indexes for this table.
|
long |
getMaxDataModificationId()
Get the last data modification id.
|
int |
getParameterOffset(ArrayList<Parameter> additionalParameters)
Get the index of the first parameter.
|
Query |
getQuery() |
long |
getRowCount(SessionLocal session)
Get the row count for this table.
|
long |
getRowCountApproximation(SessionLocal session)
Get the approximated row count for this table.
|
Index |
getScanIndex(SessionLocal session)
Get the scan index to iterate through all rows.
|
Index |
getScanIndex(SessionLocal session,
int[] masks,
TableFilter[] filters,
int filter,
SortOrder sortOrder,
AllColumnsForPlan allColumnsSet)
Get the scan index for this table.
|
abstract Query |
getTopQuery() |
boolean |
isDeterministic()
Check if the table is deterministic.
|
boolean |
isInsertable()
Returns whether this table is insertable.
|
boolean |
isQueryComparable()
Check whether the table (or view) contains no columns that prevent index
conditions to be used.
|
boolean |
isView() |
void |
removeRow(SessionLocal session,
Row row)
Remove a row from the table and all indexes.
|
long |
truncate(SessionLocal session)
Remove all rows from the table and indexes.
|
addConstraint, addDependentView, addSequence, addSynonym, addTrigger, canDrop, canTruncate, checkDeadlock, checkWritingAllowed, compareValues, convertInsertRow, convertUpdateRow, createRow, doesColumnExist, dropMultipleColumnsConstraintsAndIndexes, findColumn, findPrimaryKey, fire, fireAfterRow, fireBeforeRow, fireRow, getCheckForeignKeyConstraints, getChildren, getColumn, getColumn, getColumn, getColumns, getCompareMode, getConstraints, getDependentViews, getDiskSpaceUsed, getIdentityColumn, getIndex, getIndexForColumn, getMainIndexColumn, getNullRow, getOnCommitDrop, getOnCommitTruncate, getPrimaryKey, getRow, getRowFactory, getRowIdColumn, getSQLTableType, getTableType, getTemplateRow, getTemplateSimpleRow, getTriggers, getType, hasSelectTrigger, isGlobalTemporary, isHidden, isLockedExclusively, isLockedExclusivelyBy, isPersistData, isPersistIndexes, isRowLockable, isTableExpression, lock, lockRow, removeChildrenAndResources, removeColumnExpressionsDependencies, removeConstraint, removeDependentView, removeIndex, removeIndexOrTransferOwnership, removeSequence, removeSynonym, removeTrigger, rename, renameColumn, setCheckForeignKeyConstraints, setColumns, setHidden, setOnCommitDrop, setOnCommitTruncate, setTableExpression, unlock, updateRow, updateRowsgetSchema, getSQL, getSQLcheckRename, getComment, getCreateSQL, getCreateSQLForCopy, getCreateSQLForMeta, getDatabase, getDropSQL, getId, getModificationId, getName, invalidate, isTemporary, isValid, setComment, setModified, setObjectName, setTemporary, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetTraceSQLpublic static List<Column> createQueryColumnTemplateList(String[] cols, Query theQuery, String[] querySQLOutput)
cols - - an optional list of column names (can be specified by WITH
clause overriding usual select names)theQuery - - the query object we want the column list forquerySQLOutput - - array of length 1 to receive extra 'output' field in
addition to return value - containing the SQL query of the
Query objectpublic final Query getQuery()
public abstract Query getTopQuery()
public final void close(SessionLocal session)
Tablepublic final Index addIndex(SessionLocal session, String indexName, int indexId, IndexColumn[] cols, int uniqueColumnCount, IndexType indexType, boolean create, String indexComment)
Tablepublic final PlanItem getBestPlanItem(SessionLocal session, int[] masks, TableFilter[] filters, int filter, SortOrder sortOrder, AllColumnsForPlan allColumnsSet)
TablegetBestPlanItem 在类中 Tablesession - the sessionmasks - per-column comparison bit masks, null means 'always false',
see constants in IndexConditionfilters - all joined table filtersfilter - the current table filter indexsortOrder - the sort orderallColumnsSet - the set of all columnspublic boolean isQueryComparable()
TableisQueryComparable 在类中 Tablepublic final boolean isInsertable()
TableisInsertable 在类中 Tablepublic final void removeRow(SessionLocal session, Row row)
Tablepublic final void addRow(SessionLocal session, Row row)
Tablepublic final void checkSupportAlter()
TablecheckSupportAlter 在类中 Tablepublic final long truncate(SessionLocal session)
Tablepublic final long getRowCount(SessionLocal session)
TablegetRowCount 在类中 Tablesession - the sessionpublic final boolean canGetRowCount(SessionLocal session)
TablecanGetRowCount 在类中 Tablesession - the sessionpublic final long getRowCountApproximation(SessionLocal session)
TablegetRowCountApproximation 在类中 Tablesession - the sessionpublic final int getParameterOffset(ArrayList<Parameter> additionalParameters)
additionalParameters - additional parameterspublic final boolean canReference()
TablecanReference 在类中 Tablepublic final ArrayList<Index> getIndexes()
TablegetIndexes 在类中 Tablepublic long getMaxDataModificationId()
TablegetMaxDataModificationId 在类中 Tablepublic final Index getScanIndex(SessionLocal session)
TablegetScanIndex 在类中 Tablesession - the sessionpublic Index getScanIndex(SessionLocal session, int[] masks, TableFilter[] filters, int filter, SortOrder sortOrder, AllColumnsForPlan allColumnsSet)
TablegetScanIndex 在类中 Tablesession - the sessionmasks - the search maskfilters - the table filtersfilter - the filter indexsortOrder - the sort orderallColumnsSet - all columnspublic boolean isDeterministic()
TableisDeterministic 在类中 Tablepublic final void addDependencies(HashSet<DbObject> dependencies)
TableaddDependencies 在类中 Tabledependencies - the current set of dependenciesCopyright © 2022. All rights reserved.