public abstract class RegularTable extends TableBase
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
containsLargeObject
Whether the table contains a CLOB or BLOB.
|
protected Session |
lockExclusiveSession
The session (if any) that has exclusively locked this table.
|
protected java.util.concurrent.ConcurrentHashMap<Session,Session> |
lockSharedSessions
The set of sessions (if any) that have a shared lock on the table.
|
columns, compareMode, isHidden, TYPE_CACHED, TYPE_MEMORYcomment, database, trace| Modifier | Constructor and Description |
|---|---|
protected |
RegularTable(CreateTableData data) |
| Modifier and Type | Method and Description |
|---|---|
protected static void |
addRowsToIndex(Session session,
java.util.ArrayList<Row> list,
Index index)
Appends the specified rows to the specified index.
|
boolean |
canDrop()
Check if this table can be dropped.
|
boolean |
canGetRowCount()
Check if the row count can be retrieved quickly.
|
boolean |
canTruncate()
Check if this table can be truncated.
|
java.util.ArrayList<Session> |
checkDeadlock(Session session,
Session clash,
java.util.Set<Session> visited)
Check if a deadlock occurred.
|
void |
checkRename()
Check if this object can be renamed.
|
void |
checkSupportAlter()
Check if this table supports ALTER TABLE.
|
boolean |
getContainsLargeObject() |
protected static java.lang.String |
getDeadlockDetails(java.util.ArrayList<Session> sessions,
boolean exclusive)
Formats details of a deadlock.
|
Column |
getRowIdColumn()
Get the row id column if this table has one.
|
TableType |
getTableType()
Get the table type name
|
boolean |
isDeterministic()
Check if the table is deterministic.
|
boolean |
isLockedExclusively()
Check if this table is locked exclusively.
|
boolean |
isLockedExclusivelyBy(Session session)
Check if the table is exclusively locked by this session.
|
protected static void |
sortRows(java.util.ArrayList<? extends SearchRow> list,
Index index)
Sorts the specified list of rows for a specified index.
|
java.lang.String |
toString() |
getCreateSQL, getDropSQL, getMainIndexColumn, isGlobalTemporaryaddConstraint, addDependencies, addDependentView, addIndex, addRow, addSequence, addSynonym, addTrigger, canReference, checkWritingAllowed, close, compareValues, createRow, doesColumnExist, dropMultipleColumnsConstraintsAndIndexes, findColumn, findPrimaryKey, fire, fireAfterRow, fireBeforeRow, fireRow, getBestPlanItem, getCheckForeignKeyConstraints, getChildren, getColumn, getColumn, getColumn, getColumns, getCompareMode, getConstraints, getCreateSQLForCopy, getDefaultValue, getDependentViews, getDiskSpaceUsed, getIndex, getIndexes, getIndexForColumn, getMaxDataModificationId, getOnCommitDrop, getOnCommitTruncate, getOnUpdateValue, getPrimaryKey, getRow, getRowCount, getRowCountApproximation, getScanIndex, getScanIndex, getTemplateRow, getTemplateSimpleRow, getType, getUniqueIndex, hasInsteadOfTrigger, hasSelectTrigger, isHidden, isMVStore, isPersistData, isPersistIndexes, isQueryComparable, isTableExpression, isView, lock, lockRow, removeChildrenAndResources, removeColumnExpressionsDependencies, removeConstraint, removeDependentView, removeIndex, removeIndexOrTransferOwnership, removeRow, removeSequence, removeSynonym, removeTrigger, rename, renameColumn, setCheckForeignKeyConstraints, setColumns, setHidden, setOnCommitDrop, setOnCommitTruncate, setTableExpression, truncate, unlock, updateRow, updateRows, validateConvertUpdateSequencegetSchema, getSQL, getSQLgetComment, getDatabase, getId, getModificationId, getName, invalidate, isTemporary, isValid, setComment, setModified, setObjectName, setTemporaryclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetComment, getDatabase, getId, getName, isTemporary, setComment, setTemporaryprotected final boolean containsLargeObject
protected volatile Session lockExclusiveSession
protected RegularTable(CreateTableData data)
protected static void addRowsToIndex(Session session, java.util.ArrayList<Row> list, Index index)
session - the sessionlist - the rows, list is cleared on completionindex - the index to append toprotected static java.lang.String getDeadlockDetails(java.util.ArrayList<Session> sessions, boolean exclusive)
sessions - the list of sessionsexclusive - true if waiting for exclusive lock, false otherwiseprotected static void sortRows(java.util.ArrayList<? extends SearchRow> list, Index index)
list - the list of rowsindex - the index to sort forpublic boolean canDrop()
Tablepublic boolean canGetRowCount()
TablecanGetRowCount in class Tablepublic boolean canTruncate()
TablecanTruncate in class Tablepublic java.util.ArrayList<Session> checkDeadlock(Session session, Session clash, java.util.Set<Session> visited)
TablecheckDeadlock in class Tablesession - the session to be tested forclash - set with sessions already visited, and null when starting
verificationvisited - set with sessions already visited, and null when starting
verificationpublic void checkRename()
DbObjectBasecheckRename in interface DbObjectcheckRename in class DbObjectBasepublic void checkSupportAlter()
TablecheckSupportAlter in class Tablepublic boolean getContainsLargeObject()
public Column getRowIdColumn()
TablegetRowIdColumn in class Tablepublic TableType getTableType()
TablegetTableType in class Tablepublic boolean isDeterministic()
TableisDeterministic in class Tablepublic boolean isLockedExclusively()
TableisLockedExclusively in class Tablepublic boolean isLockedExclusivelyBy(Session session)
TableisLockedExclusivelyBy in class Tablesession - the sessionpublic java.lang.String toString()
toString in class DbObjectBase