public abstract class GridH2IndexBase
extends BaseIndex
| Modifier and Type | Class and Description |
|---|---|
protected class |
GridH2IndexBase.SegmentKey |
| Modifier and Type | Field and Description |
|---|---|
protected <any> |
ctx |
protected static <any> |
EMPTY_CURSOR
Empty cursor.
|
| Constructor and Description |
|---|
GridH2IndexBase() |
| Modifier and Type | Method and Description |
|---|---|
void |
add(Session ses,
Row row) |
static <Z> void |
bubbleUp(Z[] arr,
int off,
Comparator<Z> cmp) |
void |
checkRename() |
void |
close(Session ses) |
IndexLookupBatch |
createLookupBatch(TableFilter[] filters,
int filter) |
void |
destroy(boolean rmv)
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) |
long |
getDiskSpaceUsed() |
int |
getDistributedMultiplier(Session ses,
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(SearchRow row)
Remove row from index.
|
void |
remove(Session ses) |
void |
remove(Session ses,
Row row) |
void |
removeChildrenAndResources(Session session) |
abstract boolean |
removex(SearchRow row)
Removes row from index.
|
protected int |
segmentForPartition(int partition) |
protected int |
segmentForRow(SearchRow row) |
protected abstract int |
segmentsCount() |
protected int |
threadLocalSegment() |
protected <K,V> <any> |
treeForRead(int segment) |
void |
truncate(Session ses) |
protected <any> ctx
protected static final <any> EMPTY_CURSOR
protected final void initDistributedJoinMessaging(GridH2Table tbl)
tbl - Table.public final void close(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(SearchRow row)
row - Row.public abstract boolean removex(SearchRow row)
row - Row.True if row has been removed.public final int getDistributedMultiplier(Session ses,
TableFilter[] filters,
int filter)
ses - Session.filters - All joined table filters.filter - Current filter.public GridH2Table getTable()
public long getDiskSpaceUsed()
public void checkRename()
public void add(Session ses,
Row row)
public void remove(Session ses,
Row row)
public void remove(Session ses)
public void truncate(Session ses)
public boolean needRebuild()
public IndexLookupBatch createLookupBatch(TableFilter[] filters,
int filter)
public void removeChildrenAndResources(Session session)
protected <any> filter(GridH2QueryContext qctx)
qctx - Query context.public 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(SearchRow row)
row - Table row.protected <K,V> <any> treeForRead(int segment)
segment - Segment Id.protected H2Cursor doFind0(IgniteTree t, SearchRow first, SearchRow last, <any> filter)
t - Tree.first - Lower bound.last - Upper bound always inclusive.filter - Filter.public void refreshColumnIds()
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.7.2-p3 Release Date : April 25 2019