public class H2TreeIndex extends GridH2IndexBase
BPlusTree.GridH2IndexBase.SegmentKey| Modifier and Type | Field and Description |
|---|---|
static org.h2.index.Cursor |
EMPTY_CURSOR
Empty cursor.
|
static int |
IGNITE_MAX_INDEX_PAYLOAD_SIZE_DEFAULT
Default value for
IGNITE_MAX_INDEX_PAYLOAD_SIZE |
ctx| Constructor and Description |
|---|
H2TreeIndex(GridCacheContext<?,?> cctx,
H2RowCache rowCache,
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 H2Cursor |
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.
|
boolean |
putx(GridH2Row row)
Puts row.
|
void |
refreshColumnIds()
Re-assign column ids after removal of column(s).
|
GridH2Row |
remove(org.h2.result.SearchRow row)
Remove row from index.
|
boolean |
removex(org.h2.result.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, 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 static final org.h2.index.Cursor EMPTY_CURSOR
public H2TreeIndex(GridCacheContext<?,?> cctx, @Nullable H2RowCache rowCache, 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 boolean putx(GridH2Row row)
putx in class GridH2IndexBaserow - Row.True if existing row row has been replaced.public GridH2Row remove(org.h2.result.SearchRow row)
remove in class GridH2IndexBaserow - Row.public boolean removex(org.h2.result.SearchRow row)
removex in class GridH2IndexBaserow - Row.True if row has been removed.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 H2Cursor 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.public void refreshColumnIds()
refreshColumnIds in class GridH2IndexBase
Follow @ApacheIgnite
Ignite Fabric : ver. 2.6.0 Release Date : July 10 2018