public abstract class GridH2IndexBase
extends org.h2.index.BaseIndex
| Modifier and Type | Class and Description |
|---|---|
protected class |
GridH2IndexBase.SegmentKey |
| Modifier and Type | Field and Description |
|---|---|
protected GridCacheContext<?,?> |
ctx |
protected static GridCursor<GridH2Row> |
EMPTY_CURSOR
Empty cursor.
|
| Constructor and Description |
|---|
GridH2IndexBase() |
| Modifier and Type | Method and Description |
|---|---|
void |
add(org.h2.engine.Session ses,
org.h2.result.Row row) |
static <Z> void |
bubbleUp(Z[] arr,
int off,
Comparator<Z> cmp) |
void |
checkRename() |
void |
close(org.h2.engine.Session ses) |
org.h2.index.IndexLookupBatch |
createLookupBatch(org.h2.table.TableFilter[] filters,
int filter) |
void |
destroy(boolean rmv)
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) |
long |
getDiskSpaceUsed() |
int |
getDistributedMultiplier(org.h2.engine.Session ses,
org.h2.table.TableFilter[] filters,
int filter) |
GridH2Table |
getTable() |
protected void |
initDistributedJoinMessaging(GridH2Table tbl) |
boolean |
needRebuild() |
abstract GridH2Row |
put(GridH2Row row)
Puts row.
|
abstract boolean |
putx(GridH2Row row)
Puts row.
|
void |
refreshColumnIds()
Re-assign column ids after removal of column(s).
|
abstract GridH2Row |
remove(org.h2.result.SearchRow row)
Remove row from index.
|
void |
remove(org.h2.engine.Session ses) |
void |
remove(org.h2.engine.Session ses,
org.h2.result.Row row) |
void |
removeChildrenAndResources(org.h2.engine.Session session) |
abstract boolean |
removex(org.h2.result.SearchRow row)
Removes row from index.
|
protected int |
segmentForPartition(int partition) |
protected int |
segmentForRow(org.h2.result.SearchRow row) |
protected abstract int |
segmentsCount() |
protected static IndexingQueryFilter |
threadLocalFilter() |
protected int |
threadLocalSegment() |
protected <K,V> IgniteTree<K,V> |
treeForRead(int segment) |
void |
truncate(org.h2.engine.Session ses) |
canFindNext, 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, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitprotected GridCacheContext<?,?> ctx
protected static final GridCursor<GridH2Row> EMPTY_CURSOR
protected final void initDistributedJoinMessaging(GridH2Table tbl)
tbl - Table.public final void close(org.h2.engine.Session ses)
public void destroy(boolean rmv)
close(Session) because that method
is used by H2 internally.rmv - Flag remove.protected int threadLocalSegment()
public abstract GridH2Row put(GridH2Row row)
row - Row.null.public abstract boolean putx(GridH2Row row)
row - Row.True if existing row row has been replaced.public abstract GridH2Row remove(org.h2.result.SearchRow row)
row - Row.public abstract boolean removex(org.h2.result.SearchRow row)
row - Row.True if row has been removed.public final int getDistributedMultiplier(org.h2.engine.Session ses,
org.h2.table.TableFilter[] filters,
int filter)
ses - Session.filters - All joined table filters.filter - Current filter.public GridH2Table getTable()
getTable in interface org.h2.index.IndexgetTable in class org.h2.index.BaseIndexprotected static IndexingQueryFilter threadLocalFilter()
null if none.public long getDiskSpaceUsed()
public void checkRename()
checkRename in interface org.h2.engine.DbObjectcheckRename in class org.h2.engine.DbObjectBasepublic void add(org.h2.engine.Session ses,
org.h2.result.Row row)
public void remove(org.h2.engine.Session ses,
org.h2.result.Row row)
public void remove(org.h2.engine.Session ses)
public void truncate(org.h2.engine.Session ses)
public boolean needRebuild()
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 removeChildrenAndResources(org.h2.engine.Session session)
removeChildrenAndResources in interface org.h2.engine.DbObjectremoveChildrenAndResources in class org.h2.index.BaseIndexpublic static <Z> void bubbleUp(Z[] arr,
int off,
Comparator<Z> cmp)
arr - Array.off - Offset.cmp - Comparator.protected abstract int segmentsCount()
protected int segmentForPartition(int partition)
partition - Partition idx.protected int segmentForRow(org.h2.result.SearchRow row)
row - Table row.protected <K,V> IgniteTree<K,V> treeForRead(int segment)
segment - Segment Id.protected H2Cursor doFind0(IgniteTree t, @Nullable org.h2.result.SearchRow first, boolean includeFirst, @Nullable org.h2.result.SearchRow last, IndexingQueryFilter filter)
t - Tree.first - Lower bound.includeFirst - Whether lower bound should be inclusive.last - Upper bound always inclusive.filter - Filter.public void refreshColumnIds()
Follow @ApacheIgnite
Ignite Fabric : ver. 2.6.0 Release Date : July 10 2018