public class PageStoreTable extends RegularTable
containsLargeObject, lockExclusiveSession, lockSharedSessionscolumns, compareMode, isHidden, TYPE_CACHED, TYPE_MEMORYcomment, database, trace| Constructor and Description |
|---|
PageStoreTable(CreateTableData data) |
| Modifier and Type | Method and Description |
|---|---|
Index |
addIndex(Session session,
java.lang.String indexName,
int indexId,
IndexColumn[] cols,
IndexType indexType,
boolean create,
java.lang.String indexComment)
Create an index for this table
|
void |
addRow(Session session,
Row row)
Add a row to the table and all indexes.
|
void |
close(Session session)
Close the table object and flush changes.
|
long |
getDiskSpaceUsed() |
java.util.ArrayList<Index> |
getIndexes()
Get all indexes for this table.
|
long |
getMaxDataModificationId()
Get the last data modification id.
|
Row |
getRow(Session session,
long key)
Get the given row.
|
long |
getRowCount(Session session)
Get the row count for this table.
|
long |
getRowCountApproximation()
Get the approximated row count for this table.
|
Index |
getScanIndex(Session session)
Get the scan index to iterate through all rows.
|
Index |
getUniqueIndex()
Get any unique index for this table if one exists.
|
boolean |
lock(Session session,
boolean exclusive,
boolean forceLockEvenInMvcc)
Lock the table for the given session.
|
void |
removeChildrenAndResources(Session session)
Remove all dependent objects and free all resources (files, blocks in
files) of this object.
|
void |
removeRow(Session session,
Row row)
Remove a row from the table and all indexes.
|
void |
setCompareMode(CompareMode compareMode) |
void |
setRowCount(long count)
Set the row count of this table.
|
void |
truncate(Session session)
Remove all rows from the table and indexes.
|
void |
unlock(Session s)
Release the lock for this session.
|
addRowsToIndex, canDrop, canGetRowCount, canTruncate, checkDeadlock, checkRename, checkSupportAlter, getContainsLargeObject, getDeadlockDetails, getRowIdColumn, getTableType, isDeterministic, isLockedExclusively, isLockedExclusivelyBy, sortRows, toStringgetCreateSQL, getDropSQL, getMainIndexColumn, isGlobalTemporaryaddConstraint, addDependencies, addDependentView, addSequence, addSynonym, addTrigger, canReference, checkWritingAllowed, compareValues, createRow, doesColumnExist, dropMultipleColumnsConstraintsAndIndexes, findColumn, findPrimaryKey, fire, fireAfterRow, fireBeforeRow, fireRow, getBestPlanItem, getCheckForeignKeyConstraints, getChildren, getColumn, getColumn, getColumn, getColumns, getCompareMode, getConstraints, getCreateSQLForCopy, getDefaultValue, getDependentViews, getIndex, getIndexForColumn, getOnCommitDrop, getOnCommitTruncate, getOnUpdateValue, getPrimaryKey, getScanIndex, getTemplateRow, getTemplateSimpleRow, getType, hasInsteadOfTrigger, hasSelectTrigger, isHidden, isMVStore, isPersistData, isPersistIndexes, isQueryComparable, isTableExpression, isView, lockRow, removeColumnExpressionsDependencies, removeConstraint, removeDependentView, removeIndex, removeIndexOrTransferOwnership, removeSequence, removeSynonym, removeTrigger, rename, renameColumn, setCheckForeignKeyConstraints, setColumns, setHidden, setOnCommitDrop, setOnCommitTruncate, setTableExpression, 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, setTemporarypublic PageStoreTable(CreateTableData data)
public void close(Session session)
Tablepublic Row getRow(Session session, long key)
Tablepublic void addRow(Session session, Row row)
Tablepublic Index getScanIndex(Session session)
TablegetScanIndex in class Tablesession - the sessionpublic Index getUniqueIndex()
TablegetUniqueIndex in class Tablepublic java.util.ArrayList<Index> getIndexes()
TablegetIndexes in class Tablepublic Index addIndex(Session session, java.lang.String indexName, int indexId, IndexColumn[] cols, IndexType indexType, boolean create, java.lang.String indexComment)
Tablepublic long getRowCount(Session session)
TablegetRowCount in class Tablesession - the sessionpublic void removeRow(Session session, Row row)
Tablepublic void truncate(Session session)
Tablepublic boolean lock(Session session, boolean exclusive, boolean forceLockEvenInMvcc)
Tablepublic void unlock(Session s)
Tablepublic void setRowCount(long count)
count - the row countpublic void removeChildrenAndResources(Session session)
DbObjectBaseremoveChildrenAndResources in interface DbObjectremoveChildrenAndResources in class Tablesession - the sessionpublic long getMaxDataModificationId()
TablegetMaxDataModificationId in class Tablepublic long getRowCountApproximation()
TablegetRowCountApproximation in class Tablepublic long getDiskSpaceUsed()
getDiskSpaceUsed in class Tablepublic void setCompareMode(CompareMode compareMode)