public class H2TreeIndex extends H2TreeIndexBase
BPlusTree.tbl| Constructor and Description |
|---|
H2TreeIndex(InlineIndexImpl queryIndex,
GridH2Table tbl,
org.h2.table.IndexColumn[] cols,
boolean pk,
IgniteLogger log) |
| Modifier and Type | Method and Description |
|---|---|
H2TreeIndex |
createCopy(InlineIndexImpl inlineIndex,
SortedIndexDefinition idxDef)
Creates a new index that is an exact copy of this index.
|
org.h2.index.IndexLookupBatch |
createLookupBatch(org.h2.table.TableFilter[] filters,
int filter) |
void |
destroy()
Attempts to destroys index and release all the resources.
|
org.h2.index.Cursor |
find(org.h2.engine.Session ses,
org.h2.result.SearchRow lower,
org.h2.result.SearchRow upper) |
org.h2.index.Cursor |
findFirstOrLast(org.h2.engine.Session ses,
boolean b) |
Iterator<H2Row> |
findForSegment(GridH2RowRangeBounds bounds,
int segment,
IndexQueryContext qryCtx)
Find rows for the segments (distributed joins).
|
long |
getRowCount(org.h2.engine.Session ses) |
InlineIndexImpl |
index() |
UUID |
indexId() |
int |
inlineSize() |
H2CacheRow |
put(H2CacheRow row)
Puts row.
|
boolean |
putx(H2CacheRow row)
Puts row.
|
boolean |
removex(org.h2.result.SearchRow row)
Removes row from index.
|
int |
segmentsCount() |
void |
send(Collection<ClusterNode> nodes,
Message msg) |
long |
size()
Returns number of elements in the tree by scanning pages of the bottom (leaf) level.
|
GridH2RowMessage |
toSearchRowMessage(org.h2.result.SearchRow row) |
long |
totalRowCount(IndexingQueryCacheFilter partsFilter) |
<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.
|
canGetFirstOrLast, getCostadd, checkRename, close, columnsArray, getDiskSpaceUsed, getDistributedMultiplier, getRowCountApproximation, getTable, needRebuild, queryContextRegistry, refreshColumnIds, remove, remove, rowDescriptor, segment, segmentForPartition, segmentForRow, truncategetCostRangeIndexcanFindNext, canScan, checkIndexColumnTypes, commit, compareRows, 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, toStringpublic H2TreeIndex(InlineIndexImpl queryIndex, GridH2Table tbl, org.h2.table.IndexColumn[] cols, boolean pk, IgniteLogger log)
public int inlineSize()
inlineSize in class H2TreeIndexBasepublic int segmentsCount()
segmentsCount in class GridH2IndexBasepublic long totalRowCount(IndexingQueryCacheFilter partsFilter)
totalRowCount in class GridH2IndexBasepartsFilter - Partitions filter.public org.h2.index.Cursor find(org.h2.engine.Session ses,
org.h2.result.SearchRow lower,
org.h2.result.SearchRow upper)
public long getRowCount(org.h2.engine.Session ses)
public org.h2.index.Cursor findFirstOrLast(org.h2.engine.Session ses,
boolean b)
public void destroy()
GridH2IndexBase.close(Session) because that method
is used by H2 internally.destroy in class GridH2IndexBasepublic H2CacheRow put(H2CacheRow row)
put in class GridH2IndexBaserow - Row.null.public boolean putx(H2CacheRow row)
putx in class GridH2IndexBaserow - Row.True if existing row row has been replaced.public boolean removex(org.h2.result.SearchRow row)
removex in class GridH2IndexBaserow - Row.True if row has been removed.public org.h2.index.IndexLookupBatch createLookupBatch(org.h2.table.TableFilter[] filters,
int filter)
createLookupBatch in interface org.h2.index.IndexcreateLookupBatch in class org.h2.index.BaseIndexpublic void send(Collection<ClusterNode> nodes, Message msg)
nodes - Nodes.msg - Message.public Iterator<H2Row> findForSegment(GridH2RowRangeBounds bounds, int segment, IndexQueryContext qryCtx)
bounds - Bounds.segment - Segment.qryCtx - Index query context.public GridH2RowMessage toSearchRowMessage(org.h2.result.SearchRow row)
row - Search row.public long size()
throws IgniteCheckedException
IgniteCheckedException - If failed.public H2TreeIndex createCopy(InlineIndexImpl inlineIndex, SortedIndexDefinition idxDef) throws IgniteCheckedException
IgniteCheckedExceptionpublic UUID indexId()
public InlineIndexImpl index()
public <T extends Index> T unwrap(Class<T> clazz)
unwrap in class GridH2IndexBase
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.16.0 Release Date : December 15 2023