public class H2TreeIndex extends GridH2IndexBase
BPlusTree.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(<any> cctx,
H2RowCache rowCache,
GridH2Table tbl,
String idxName,
boolean pk,
boolean affinityKey,
List<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 H2Cursor |
doFind0(IgniteTree t,
SearchRow first,
SearchRow last,
<any> filter) |
protected <any> |
filter(GridH2QueryContext qctx) |
Cursor |
find(Session ses,
SearchRow lower,
SearchRow upper) |
Cursor |
findFirstOrLast(Session session,
boolean b) |
double |
getCost(Session ses,
int[] masks,
TableFilter[] filters,
int filter,
SortOrder sortOrder,
HashSet<Column> allColumnsSet) |
long |
getRowCount(Session ses) |
long |
getRowCountApproximation() |
GridH2Row |
put(GridH2Row row)
Puts row.
|
boolean |
putx(GridH2Row row)
Puts row.
|
boolean |
rebuildRequired()
Check if index exists in store.
|
void |
refreshColumnIds()
Re-assign column ids after removal of column(s).
|
GridH2Row |
remove(SearchRow row)
Remove row from index.
|
boolean |
removex(SearchRow row)
Removes row from index.
|
protected int |
segmentsCount() |
protected H2Tree |
treeForRead(int segment) |
add, bubbleUp, checkRename, close, createLookupBatch, getDiskSpaceUsed, getDistributedMultiplier, getTable, initDistributedJoinMessaging, needRebuild, remove, removeChildrenAndResources, segmentForPartition, segmentForRow, threadLocalSegment, truncatepublic static final int IGNITE_MAX_INDEX_PAYLOAD_SIZE_DEFAULT
IGNITE_MAX_INDEX_PAYLOAD_SIZEpublic H2TreeIndex(<any> cctx,
H2RowCache rowCache,
GridH2Table tbl,
String idxName,
boolean pk,
boolean affinityKey,
List<IndexColumn> colsList,
int inlineSize,
int segmentsCnt)
throws IgniteCheckedException
cctx - Cache context.tbl - Table.idxName - Index name.pk - Primary key.affinityKey - true for affinity key.colsList - Index columns.inlineSize - Inline size.IgniteCheckedException - If failed.public boolean rebuildRequired()
True if exists.protected int segmentsCount()
segmentsCount in class GridH2IndexBasepublic Cursor find(Session ses,
SearchRow lower,
SearchRow upper)
public GridH2Row put(GridH2Row row)
put in class GridH2IndexBaserow - Row.null.public boolean putx(GridH2Row row)
putx in class GridH2IndexBaserow - Row.True if existing row row has been replaced.public GridH2Row remove(SearchRow row)
remove in class GridH2IndexBaserow - Row.public boolean removex(SearchRow row)
removex in class GridH2IndexBaserow - Row.True if row has been removed.public double getCost(Session ses,
int[] masks,
TableFilter[] filters,
int filter,
SortOrder sortOrder,
HashSet<Column> allColumnsSet)
public long getRowCount(Session ses)
public long getRowCountApproximation()
public boolean canGetFirstOrLast()
public Cursor findFirstOrLast(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 H2Cursor doFind0(IgniteTree t, SearchRow first, SearchRow last, <any> filter)
doFind0 in class GridH2IndexBaset - Tree.first - Lower bound.last - Upper bound always inclusive.filter - Filter.protected <any> filter(GridH2QueryContext qctx)
filter in class GridH2IndexBaseqctx - Query context.public void refreshColumnIds()
refreshColumnIds in class GridH2IndexBase
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.7.2-p3 Release Date : April 25 2019