public abstract class GridH2IndexBase extends H2IndexCostedBase
| Modifier | Constructor and Description |
|---|---|
protected |
GridH2IndexBase(GridH2Table tbl,
String name,
org.gridgain.internal.h2.table.IndexColumn[] cols,
org.gridgain.internal.h2.index.IndexType type)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
add(org.gridgain.internal.h2.engine.Session ses,
org.gridgain.internal.h2.result.Row row) |
static int |
calculateSegment(int segmentCnt,
int part) |
void |
checkRename() |
void |
close(org.gridgain.internal.h2.engine.Session ses) |
static @NotNull org.gridgain.internal.h2.table.IndexColumn[] |
columnsArray(GridH2Table tbl,
List<org.gridgain.internal.h2.table.IndexColumn> colsList) |
void |
destroy(boolean rmv)
Attempts to destroys index and release all the resources.
|
long |
getDiskSpaceUsed() |
int |
getDistributedMultiplier(org.gridgain.internal.h2.engine.Session ses,
org.gridgain.internal.h2.table.TableFilter[] filters,
int filter) |
long |
getRowCountApproximation(org.gridgain.internal.h2.engine.Session ses) |
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.gridgain.internal.h2.engine.Session ses) |
void |
remove(org.gridgain.internal.h2.engine.Session ses,
org.gridgain.internal.h2.result.Row row) |
void |
removeChildrenAndResources(org.gridgain.internal.h2.engine.Session session) |
abstract boolean |
removex(org.gridgain.internal.h2.result.SearchRow row)
Removes row from index.
|
protected GridH2RowDescriptor |
rowDescriptor() |
protected int |
segment(QueryContext qctx) |
int |
segmentForPartition(int part) |
protected int |
segmentForRow(GridCacheContext ctx,
org.gridgain.internal.h2.result.SearchRow row) |
abstract int |
segmentsCount() |
abstract long |
totalRowCount(IndexingQueryCacheFilter partsFilter) |
void |
truncate(org.gridgain.internal.h2.engine.Session ses) |
costRangeIndex, getCostRangeIndex_8_7_12canFindNext, canScan, checkIndexColumnTypes, compareRows, createLookupBatch, find, findNext, getColumnIndex, getColumns, getCostRangeIndex, getCreateSQL, getCreateSQLForCopy, getDropSQL, getDuplicateKeyException, getIndexColumns, getIndexType, getPlanSQL, getRow, getType, isFindUsingFullTableScan, isFirstColumn, isHidden, isRowIdIndex, mayHaveNullDuplicates, setSortedInsertMode, updategetSchema, getSQL, getSQLgetChildren, getComment, getDatabase, getId, getModificationId, getName, invalidate, isTemporary, isValid, rename, setComment, setModified, setObjectName, setTemporary, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitprotected GridH2IndexBase(GridH2Table tbl, String name, org.gridgain.internal.h2.table.IndexColumn[] cols, org.gridgain.internal.h2.index.IndexType type)
tbl - Table.name - Index name.cols - Indexed columns.type - Index type.public final void close(org.gridgain.internal.h2.engine.Session ses)
public void destroy(boolean rmv)
close(Session) because that method
is used by H2 internally.rmv - Flag remove.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.gridgain.internal.h2.result.SearchRow row)
row - Row.True if row has been removed.public final int getDistributedMultiplier(org.gridgain.internal.h2.engine.Session ses,
org.gridgain.internal.h2.table.TableFilter[] filters,
int filter)
ses - Session.filters - All joined table filters.filter - Current filter.public GridH2Table getTable()
getTable in interface org.gridgain.internal.h2.index.IndexgetTable in class org.gridgain.internal.h2.index.BaseIndexpublic long getDiskSpaceUsed()
public void checkRename()
checkRename in interface org.gridgain.internal.h2.engine.DbObjectcheckRename in class org.gridgain.internal.h2.engine.DbObjectBasepublic void add(org.gridgain.internal.h2.engine.Session ses,
org.gridgain.internal.h2.result.Row row)
public void remove(org.gridgain.internal.h2.engine.Session ses,
org.gridgain.internal.h2.result.Row row)
public void remove(org.gridgain.internal.h2.engine.Session ses)
public void truncate(org.gridgain.internal.h2.engine.Session ses)
public boolean needRebuild()
public void removeChildrenAndResources(org.gridgain.internal.h2.engine.Session session)
removeChildrenAndResources in interface org.gridgain.internal.h2.engine.DbObjectremoveChildrenAndResources in class org.gridgain.internal.h2.index.BaseIndexpublic abstract int segmentsCount()
public int segmentForPartition(int part)
part - Partition idx.public static int calculateSegment(int segmentCnt,
int part)
segmentCnt - Сount of segments in cache.part - Partition.protected int segmentForRow(GridCacheContext ctx, org.gridgain.internal.h2.result.SearchRow row)
row - Table row.public void refreshColumnIds()
protected GridH2RowDescriptor rowDescriptor()
protected QueryContextRegistry queryContextRegistry()
@NotNull public static @NotNull org.gridgain.internal.h2.table.IndexColumn[] columnsArray(GridH2Table tbl, List<org.gridgain.internal.h2.table.IndexColumn> colsList)
tbl - Table.colsList - Columns list.public long getRowCountApproximation(org.gridgain.internal.h2.engine.Session ses)
public abstract long totalRowCount(IndexingQueryCacheFilter partsFilter)
partsFilter - Partitions filter.
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 8.9.17-p1 Release Date : November 27 2025