public abstract class GridMergeIndex
extends org.h2.index.BaseIndex
| Modifier and Type | Class and Description |
|---|---|
protected class |
GridMergeIndex.FetchingCursor
Fetching cursor.
|
protected class |
GridMergeIndex.IteratorCursor
Cursor over iterator.
|
| Modifier | Constructor and Description |
|---|---|
protected |
GridMergeIndex(GridKernalContext ctx) |
|
GridMergeIndex(GridKernalContext ctx,
GridMergeTable tbl,
String name,
org.h2.index.IndexType type,
org.h2.table.IndexColumn[] cols) |
| Modifier and Type | Method and Description |
|---|---|
void |
add(org.h2.engine.Session ses,
org.h2.result.Row row) |
void |
addPage(GridResultPage page) |
protected abstract void |
addPage0(GridResultPage page) |
void |
addSource(UUID nodeId) |
boolean |
canGetFirstOrLast() |
void |
checkRename() |
protected void |
checkSourceNodesAlive()
Fails index if any source node is left.
|
void |
close(org.h2.engine.Session ses) |
void |
fail(javax.cache.CacheException e) |
void |
fail(UUID nodeId) |
boolean |
fetchedAll() |
protected void |
fetchNextPage(GridResultPage page) |
org.h2.index.Cursor |
find(org.h2.engine.Session ses,
org.h2.result.SearchRow first,
org.h2.result.SearchRow last) |
protected abstract org.h2.index.Cursor |
findAllFetched(List<org.h2.result.Row> fetched,
org.h2.result.SearchRow first,
org.h2.result.SearchRow last) |
org.h2.index.Cursor |
findFirstOrLast(org.h2.engine.Session ses,
boolean first) |
protected abstract org.h2.index.Cursor |
findInStream(org.h2.result.SearchRow first,
org.h2.result.SearchRow last) |
double |
getCost(org.h2.engine.Session ses,
int[] masks,
org.h2.table.TableFilter filter,
org.h2.result.SortOrder sortOrder) |
long |
getDiskSpaceUsed() |
long |
getRowCount(org.h2.engine.Session ses) |
long |
getRowCountApproximation() |
boolean |
hasSource(UUID nodeId) |
boolean |
needRebuild() |
void |
remove(org.h2.engine.Session ses) |
void |
remove(org.h2.engine.Session ses,
org.h2.result.Row row) |
Set<UUID> |
sources() |
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, getTable, getType, initBaseIndex, isHidden, isRowIdIndex, removeChildrenAndResources, setSortedInsertModegetChildren, getComment, getDatabase, getId, getModificationId, getName, initDbObjectBase, invalidate, isTemporary, rename, setComment, setModified, setObjectName, setTemporary, toStringpublic GridMergeIndex(GridKernalContext ctx, GridMergeTable tbl, String name, org.h2.index.IndexType type, org.h2.table.IndexColumn[] cols)
ctx - Context.tbl - Table.name - Index name.type - Type.cols - Columns.protected GridMergeIndex(GridKernalContext ctx)
ctx - Context.protected final void checkSourceNodesAlive()
public boolean hasSource(UUID nodeId)
nodeId - Node ID.true If this index needs data from the given source node.public long getRowCount(org.h2.engine.Session ses)
public long getRowCountApproximation()
public void addSource(UUID nodeId)
nodeId - Node ID.public void fail(javax.cache.CacheException e)
e - Error.public void fail(UUID nodeId)
nodeId - Node ID.public final void addPage(GridResultPage page)
page - Page.protected abstract void addPage0(GridResultPage page)
page - Page.protected void fetchNextPage(GridResultPage page)
page - Page.public org.h2.index.Cursor find(org.h2.engine.Session ses,
org.h2.result.SearchRow first,
org.h2.result.SearchRow last)
public boolean fetchedAll()
true If we have fetched all the remote rows.protected abstract org.h2.index.Cursor findInStream(@Nullable org.h2.result.SearchRow first, @Nullable org.h2.result.SearchRow last)
first - First row.last - Last row.GridMergeIndex.FetchingCursor instance.protected abstract org.h2.index.Cursor findAllFetched(List<org.h2.result.Row> fetched, @Nullable org.h2.result.SearchRow first, @Nullable org.h2.result.SearchRow last)
fetched - Fetched rows.first - First row.last - Last row.public void checkRename()
checkRename in interface org.h2.engine.DbObjectcheckRename in class org.h2.engine.DbObjectBasepublic void close(org.h2.engine.Session ses)
public 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 double getCost(org.h2.engine.Session ses,
int[] masks,
org.h2.table.TableFilter filter,
org.h2.result.SortOrder sortOrder)
public void remove(org.h2.engine.Session ses)
public void truncate(org.h2.engine.Session ses)
public boolean canGetFirstOrLast()
public org.h2.index.Cursor findFirstOrLast(org.h2.engine.Session ses,
boolean first)
public boolean needRebuild()
public long getDiskSpaceUsed()
Follow @ApacheIgnite
Ignite Fabric : ver. 1.6.0 Release Date : May 18 2016