public abstract class GridH2IndexBase extends H2IndexCostedBase
tbl| Modifier | Constructor and Description |
|---|---|
protected |
GridH2IndexBase(GridH2Table tbl,
String name,
org.h2.table.IndexColumn[] cols,
org.h2.index.IndexType type)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
add(org.h2.engine.Session ses,
org.h2.result.Row row) |
void |
checkRename() |
void |
close(org.h2.engine.Session ses) |
static @NotNull org.h2.table.IndexColumn[] |
columnsArray(GridH2Table tbl,
List<org.h2.table.IndexColumn> colsList) |
void |
destroy()
Attempts to destroys index and release all the resources.
|
long |
getDiskSpaceUsed() |
int |
getDistributedMultiplier(org.h2.engine.Session ses,
org.h2.table.TableFilter[] filters,
int filter) |
long |
getRowCountApproximation() |
GridH2Table |
getTable() |
boolean |
needRebuild() |
abstract H2CacheRow |
put(H2CacheRow row)
Puts row.
|
abstract boolean |
putx(H2CacheRow row)
Puts row.
|
protected QueryContextRegistry |
queryContextRegistry() |
void |
refreshColumnIds()
Re-assign column ids after removal of column(s).
|
void |
remove(org.h2.engine.Session ses) |
void |
remove(org.h2.engine.Session ses,
org.h2.result.Row row) |
abstract boolean |
removex(org.h2.result.SearchRow row)
Removes row from index.
|
protected GridH2RowDescriptor |
rowDescriptor() |
protected int |
segment(QueryContext qctx) |
int |
segmentForPartition(int partition) |
protected int |
segmentForRow(GridCacheContext ctx,
org.h2.result.SearchRow row) |
abstract int |
segmentsCount() |
abstract long |
totalRowCount(IndexingQueryCacheFilter partsFilter) |
void |
truncate(org.h2.engine.Session ses) |
<T extends Index> |
unwrap(Class<T> clazz)
Finds an instance of an interface implemented by this object,
or returns null if this object does not support that interface.
|
getCostRangeIndexcanFindNext, canScan, checkIndexColumnTypes, commit, compareRows, createLookupBatch, find, findNext, getColumnIndex, getColumns, getCostRangeIndex, getCreateSQL, getCreateSQLForCopy, getDropSQL, getDuplicateKeyException, getIndexColumns, getIndexType, getPlanSQL, getRow, getType, initBaseIndex, isFindUsingFullTableScan, isFirstColumn, isHidden, isRowIdIndex, mayHaveNullDuplicates, removeChildrenAndResources, setSortedInsertModegetChildren, getComment, getDatabase, getId, getModificationId, getName, initDbObjectBase, invalidate, isTemporary, isValid, rename, setComment, setModified, setObjectName, setTemporary, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitprotected GridH2IndexBase(GridH2Table tbl, String name, org.h2.table.IndexColumn[] cols, org.h2.index.IndexType type)
tbl - Table.name - Index name.cols - Indexed columns.type - Index type.public final void close(org.h2.engine.Session ses)
public void destroy()
close(Session) because that method
is used by H2 internally.protected int segment(QueryContext qctx)
qctx - Query context.public abstract H2CacheRow put(H2CacheRow row)
row - Row.null.public abstract boolean putx(H2CacheRow row)
row - Row.True if existing row row has been replaced.public abstract boolean removex(org.h2.result.SearchRow row)
row - Row.True if row has been removed.public final int getDistributedMultiplier(org.h2.engine.Session ses,
org.h2.table.TableFilter[] filters,
int filter)
ses - Session.filters - All joined table filters.filter - Current filter.public GridH2Table getTable()
getTable in interface org.h2.index.IndexgetTable in class org.h2.index.BaseIndexpublic long getDiskSpaceUsed()
public void checkRename()
checkRename in interface org.h2.engine.DbObjectcheckRename in class org.h2.engine.DbObjectBasepublic void add(org.h2.engine.Session ses,
org.h2.result.Row row)
public void remove(org.h2.engine.Session ses,
org.h2.result.Row row)
public void remove(org.h2.engine.Session ses)
public void truncate(org.h2.engine.Session ses)
public boolean needRebuild()
public abstract int segmentsCount()
public int segmentForPartition(int partition)
partition - Partition idx.protected int segmentForRow(GridCacheContext ctx, org.h2.result.SearchRow row)
row - Table row.public void refreshColumnIds()
protected GridH2RowDescriptor rowDescriptor()
protected QueryContextRegistry queryContextRegistry()
public long getRowCountApproximation()
public abstract long totalRowCount(IndexingQueryCacheFilter partsFilter)
partsFilter - Partitions filter.@NotNull public static @NotNull org.h2.table.IndexColumn[] columnsArray(GridH2Table tbl, List<org.h2.table.IndexColumn> colsList)
tbl - Table.colsList - Columns list.
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.16.0 Release Date : December 15 2023