public class GridH2Table
extends org.h2.table.TableBase
| Modifier and Type | Class and Description |
|---|---|
static class |
GridH2Table.Engine
H2 Table engine.
|
static interface |
GridH2Table.IndexesFactory
Type which can create indexes list for given table.
|
| Constructor and Description |
|---|
GridH2Table(org.h2.command.ddl.CreateTableData createTblData,
GridH2RowDescriptor desc,
GridH2Table.IndexesFactory idxsFactory,
String spaceName)
Creates table.
|
| Modifier and Type | Method and Description |
|---|---|
org.h2.index.Index |
addIndex(org.h2.engine.Session ses,
String s,
int i,
org.h2.table.IndexColumn[] idxCols,
org.h2.index.IndexType idxType,
boolean b,
String s1) |
void |
addRow(org.h2.engine.Session ses,
org.h2.result.Row row) |
boolean |
canDrop() |
boolean |
canGetRowCount() |
void |
checkRename() |
void |
checkSupportAlter() |
void |
close()
Closes table and releases resources.
|
void |
close(org.h2.engine.Session ses) |
long |
getDiskSpaceUsed() |
ArrayList<org.h2.index.Index> |
getIndexes() |
long |
getMaxDataModificationId() |
long |
getRowCount(org.h2.engine.Session ses) |
long |
getRowCountApproximation() |
org.h2.index.Index |
getScanIndex(org.h2.engine.Session ses) |
String |
getTableType() |
org.h2.index.Index |
getUniqueIndex() |
org.h2.table.IndexColumn |
indexColumn(int col,
int sorting)
Creates index column for table.
|
boolean |
isDeterministic() |
boolean |
isLockedExclusively() |
boolean |
isLockedExclusivelyBy(org.h2.engine.Session ses) |
void |
lock(org.h2.engine.Session ses,
boolean exclusive,
boolean force) |
boolean |
onSwap(CacheObject key)
Should be called when entry is swapped.
|
boolean |
onUnswap(CacheObject key,
CacheObject val)
Should be called when entry is unswapped.
|
void |
rebuildIndexes()
Rebuilds all indexes of this table.
|
void |
removeRow(org.h2.engine.Session ses,
org.h2.result.Row row) |
GridH2RowDescriptor |
rowDescriptor() |
void |
truncate(org.h2.engine.Session ses) |
void |
unlock(org.h2.engine.Session ses) |
boolean |
update(CacheObject key,
CacheObject val,
long expirationTime,
boolean rmv)
Updates table for given key.
|
addConstraint, addDependencies, addSequence, addTrigger, addView, canReference, canTruncate, checkDeadlock, checkWritingAllowed, commit, compareTypeSave, doesColumnExist, dropSingleColumnConstraintsAndIndexes, findPrimaryKey, fire, fireAfterRow, fireBeforeRow, fireRow, getBestPlanItem, getCheckForeignKeyConstraints, getChildren, getColumn, getColumn, getColumns, getCompareMode, getConstraints, getCreateSQLForCopy, getDefaultValue, getIndexForColumn, getOnCommitDrop, getOnCommitTruncate, getPrimaryKey, getRow, getRowIdColumn, getTemplateRow, getTemplateSimpleRow, getType, getViews, hasSelectTrigger, isHidden, isMVStore, isPersistData, isPersistIndexes, removeChildrenAndResources, removeConstraint, removeIndex, removeIndexOrTransferOwnership, removeSequence, removeTrigger, removeView, rename, renameColumn, setCheckForeignKeyConstraints, setColumns, setHidden, setOnCommitDrop, setOnCommitTruncate, updateRows, validateConvertUpdateSequencegetComment, getDatabase, getId, getModificationId, getName, initDbObjectBase, invalidate, isTemporary, setComment, setModified, setObjectName, setTemporary, toStringpublic GridH2Table(org.h2.command.ddl.CreateTableData createTblData,
@Nullable
GridH2RowDescriptor desc,
GridH2Table.IndexesFactory idxsFactory,
@Nullable
String spaceName)
createTblData - Table description.desc - Row descriptor.idxsFactory - Indexes factory.spaceName - Space name.public long getDiskSpaceUsed()
getDiskSpaceUsed in class org.h2.table.Tablepublic GridH2RowDescriptor rowDescriptor()
public boolean onSwap(CacheObject key) throws IgniteCheckedException
key - Entry key.true If row was found.IgniteCheckedException - If failed.public boolean onUnswap(CacheObject key, CacheObject val) throws IgniteCheckedException
key - Key.val - Value.true If row was found.IgniteCheckedException - If failed.public void lock(@Nullable org.h2.engine.Session ses, boolean exclusive, boolean force)
lock in class org.h2.table.Tablepublic void close(org.h2.engine.Session ses)
close in class org.h2.table.Tablepublic void unlock(@Nullable org.h2.engine.Session ses)
unlock in class org.h2.table.Tablepublic void close()
public boolean update(CacheObject key, CacheObject val, long expirationTime, boolean rmv) throws IgniteCheckedException
key - Key.val - Value.expirationTime - Expiration time.rmv - If true then remove, else update row.true If operation succeeded.IgniteCheckedException - If failed.public void rebuildIndexes()
public org.h2.index.Index addIndex(org.h2.engine.Session ses,
String s,
int i,
org.h2.table.IndexColumn[] idxCols,
org.h2.index.IndexType idxType,
boolean b,
String s1)
addIndex in class org.h2.table.Tablepublic void removeRow(org.h2.engine.Session ses,
org.h2.result.Row row)
removeRow in class org.h2.table.Tablepublic void truncate(org.h2.engine.Session ses)
truncate in class org.h2.table.Tablepublic void addRow(org.h2.engine.Session ses,
org.h2.result.Row row)
addRow in class org.h2.table.Tablepublic void checkSupportAlter()
checkSupportAlter in class org.h2.table.Tablepublic String getTableType()
getTableType in class org.h2.table.Tablepublic org.h2.index.Index getScanIndex(org.h2.engine.Session ses)
getScanIndex in class org.h2.table.Tablepublic org.h2.index.Index getUniqueIndex()
getUniqueIndex in class org.h2.table.Tablepublic ArrayList<org.h2.index.Index> getIndexes()
getIndexes in class org.h2.table.Tablepublic boolean isLockedExclusively()
isLockedExclusively in class org.h2.table.Tablepublic boolean isLockedExclusivelyBy(org.h2.engine.Session ses)
isLockedExclusivelyBy in class org.h2.table.Tablepublic long getMaxDataModificationId()
getMaxDataModificationId in class org.h2.table.Tablepublic boolean isDeterministic()
isDeterministic in class org.h2.table.Tablepublic boolean canGetRowCount()
canGetRowCount in class org.h2.table.Tablepublic boolean canDrop()
canDrop in class org.h2.table.Tablepublic long getRowCount(@Nullable org.h2.engine.Session ses)
getRowCount in class org.h2.table.Tablepublic long getRowCountApproximation()
getRowCountApproximation in class org.h2.table.Tablepublic void checkRename()
checkRename in interface org.h2.engine.DbObjectcheckRename in class org.h2.engine.DbObjectBasepublic org.h2.table.IndexColumn indexColumn(int col,
int sorting)
col - Column index.sorting - Sorting order SortOrder
Follow @ApacheIgnite
Ignite Fabric : ver. 1.6.0 Release Date : May 18 2016