public class H2TreeIndex extends GridH2IndexBase
BPlusTree.GridH2IndexBase.FilteringCursor, GridH2IndexBase.SegmentKey| Modifier and Type | Field and Description |
|---|---|
static int |
IGNITE_MAX_INDEX_PAYLOAD_SIZE_DEFAULT
Default value for
IGNITE_MAX_INDEX_PAYLOAD_SIZE |
ctx, EMPTY_CURSOR| Constructor and Description |
|---|
H2TreeIndex(GridCacheContext<?,?> cctx,
GridH2Table tbl,
String name,
boolean pk,
List<org.h2.table.IndexColumn> colsList,
int inlineSize,
int segmentsCnt) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canGetFirstOrLast() |
void |
destroy(boolean rmvIndex)
Attempts to destroys index and release all the resources.
|
protected GridCursor<GridH2Row> |
doFind0(IgniteTree t,
org.h2.result.SearchRow first,
boolean includeFirst,
org.h2.result.SearchRow last,
IndexingQueryFilter filter) |
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 session,
boolean b) |
double |
getCost(org.h2.engine.Session ses,
int[] masks,
org.h2.table.TableFilter[] filters,
int filter,
org.h2.result.SortOrder sortOrder,
HashSet<org.h2.table.Column> allColumnsSet) |
long |
getRowCount(org.h2.engine.Session ses) |
long |
getRowCountApproximation() |
GridH2Row |
put(GridH2Row row)
Puts row.
|
GridH2Row |
remove(org.h2.result.SearchRow row)
Remove row from index.
|
void |
removex(org.h2.result.SearchRow row)
Remove row from index, does not return removed row.
|
protected int |
segmentsCount() |
protected H2Tree |
treeForRead(int segment) |
add, bubbleUp, checkRename, close, createLookupBatch, filter, getDiskSpaceUsed, getDistributedMultiplier, getTable, initDistributedJoinMessaging, needRebuild, remove, remove, removeChildrenAndResources, segmentForPartition, segmentForRow, threadLocalFilter, threadLocalSegment, truncatecanFindNext, canScan, checkIndexColumnTypes, commit, compareRows, containsNullAndAllowMultipleNull, find, findNext, getColumnIndex, getColumns, getCostRangeIndex, getCreateSQL, getCreateSQLForCopy, getDropSQL, getDuplicateKeyException, getIndexColumns, getIndexType, getPlanSQL, getRow, getType, initBaseIndex, isFirstColumn, isHidden, isRowIdIndex, setSortedInsertModegetChildren, getComment, getDatabase, getId, getModificationId, getName, initDbObjectBase, invalidate, isTemporary, isValid, rename, setComment, setModified, setObjectName, setTemporary, toStringpublic static final int IGNITE_MAX_INDEX_PAYLOAD_SIZE_DEFAULT
IGNITE_MAX_INDEX_PAYLOAD_SIZEpublic H2TreeIndex(GridCacheContext<?,?> cctx, GridH2Table tbl, String name, boolean pk, List<org.h2.table.IndexColumn> colsList, int inlineSize, int segmentsCnt) throws IgniteCheckedException
cctx - Cache context.tbl - Table.name - Index name.pk - Primary key.colsList - Index columns.inlineSize - Inline size.IgniteCheckedException - If failed.protected int segmentsCount()
segmentsCount in class GridH2IndexBasepublic org.h2.index.Cursor find(org.h2.engine.Session ses,
org.h2.result.SearchRow lower,
org.h2.result.SearchRow upper)
public GridH2Row put(GridH2Row row)
put in class GridH2IndexBaserow - Row.null.public GridH2Row remove(org.h2.result.SearchRow row)
remove in class GridH2IndexBaserow - Row.public void removex(org.h2.result.SearchRow row)
removex in class GridH2IndexBaserow - Row.public double getCost(org.h2.engine.Session ses,
int[] masks,
org.h2.table.TableFilter[] filters,
int filter,
org.h2.result.SortOrder sortOrder,
HashSet<org.h2.table.Column> allColumnsSet)
public long getRowCount(org.h2.engine.Session ses)
public long getRowCountApproximation()
public boolean canGetFirstOrLast()
public org.h2.index.Cursor findFirstOrLast(org.h2.engine.Session session,
boolean b)
public void destroy(boolean rmvIndex)
GridH2IndexBase.close(Session) because that method
is used by H2 internally.destroy in class GridH2IndexBasermvIndex - Flag remove.protected H2Tree treeForRead(int segment)
treeForRead in class GridH2IndexBasesegment - Segment Id.protected GridCursor<GridH2Row> doFind0(IgniteTree t, @Nullable org.h2.result.SearchRow first, boolean includeFirst, @Nullable org.h2.result.SearchRow last, IndexingQueryFilter filter)
doFind0 in class GridH2IndexBaset - Tree.first - Lower bound.includeFirst - Whether lower bound should be inclusive.last - Upper bound always inclusive.filter - Filter.
Follow @ApacheIgnite
Ignite Fabric : ver. 2.3.0 Release Date : October 28 2017