public abstract class GridH2IndexBase
extends org.h2.index.BaseIndex
| Modifier and Type | Class and Description |
|---|---|
protected static class |
GridH2IndexBase.FilteringCursor
Cursor which filters by expiration time and predicate.
|
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 GridCursor<GridH2Row> |
doFind0(IgniteTree t,
org.h2.result.SearchRow first,
boolean includeFirst,
org.h2.result.SearchRow last,
IndexingQueryFilter filter) |
protected GridCursor<GridH2Row> |
filter(GridCursor<GridH2Row> cursor,
IndexingQueryFilter filter)
Filters rows from expired ones and using predicate.
|
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 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) |
void |
removex(org.h2.result.SearchRow row)
Remove row from index, does not return removed row.
|
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 GridH2Row remove(org.h2.result.SearchRow row)
row - Row.public void removex(org.h2.result.SearchRow row)
row - Row.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 GridCursor<GridH2Row> filter(GridCursor<GridH2Row> cursor, IndexingQueryFilter filter)
cursor - GridCursor over rows.filter - Optional filter.protected 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 GridCursor<GridH2Row> 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.
Follow @ApacheIgnite
Ignite Fabric : ver. 2.3.0 Release Date : October 28 2017