Class H2TreeClientIndex
- java.lang.Object
-
- org.h2.engine.DbObjectBase
-
- org.h2.schema.SchemaObjectBase
-
- org.h2.index.BaseIndex
-
- org.apache.ignite.internal.processors.query.h2.opt.H2IndexCostedBase
-
- org.apache.ignite.internal.processors.query.h2.opt.GridH2IndexBase
-
- org.apache.ignite.internal.processors.query.h2.database.H2TreeIndexBase
-
- org.apache.ignite.internal.processors.query.h2.database.H2TreeClientIndex
-
- All Implemented Interfaces:
org.h2.engine.DbObject,org.h2.index.Index,org.h2.schema.SchemaObject
public class H2TreeClientIndex extends H2TreeIndexBase
We need indexes on an not affinity nodes. The index shouldn't contains any data.
-
-
Field Summary
-
Fields inherited from class org.apache.ignite.internal.processors.query.h2.opt.H2IndexCostedBase
tbl
-
-
Constructor Summary
Constructors Constructor Description H2TreeClientIndex(Index idx, GridH2Table tbl, String name, org.h2.table.IndexColumn[] cols, org.h2.index.IndexType idxType)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.h2.index.Cursorfind(org.h2.engine.Session ses, org.h2.result.SearchRow lower, org.h2.result.SearchRow upper)org.h2.index.CursorfindFirstOrLast(org.h2.engine.Session session, boolean first)longgetRowCount(org.h2.engine.Session ses)H2CacheRowput(H2CacheRow row)Puts row.booleanputx(H2CacheRow row)Puts row.voidrefreshColumnIds()Re-assign column ids after removal of column(s).booleanremovex(org.h2.result.SearchRow row)Removes row from index.intsegmentsCount()longtotalRowCount(IndexingQueryCacheFilter partsFilter)<T extends Index>
Tunwrap(Class<T> clazz)Finds an instance of an interface implemented by this object, or returns null if this object does not support that interface.-
Methods inherited from class org.apache.ignite.internal.processors.query.h2.database.H2TreeIndexBase
canGetFirstOrLast, getCost
-
Methods inherited from class org.apache.ignite.internal.processors.query.h2.opt.GridH2IndexBase
add, checkRename, close, columnsArray, destroy, getDiskSpaceUsed, getDistributedMultiplier, getRowCountApproximation, getTable, needRebuild, queryContextRegistry, remove, remove, rowDescriptor, segment, segmentForPartition, segmentForRow, truncate
-
Methods inherited from class org.apache.ignite.internal.processors.query.h2.opt.H2IndexCostedBase
getCostRangeIndex
-
Methods inherited from class org.h2.index.BaseIndex
canFindNext, canScan, checkIndexColumnTypes, commit, compareRows, createLookupBatch, find, findNext, getColumnIndex, getColumns, getCostRangeIndex, getCreateSQL, getCreateSQLForCopy, getDropSQL, getDuplicateKeyException, getIndexColumns, getIndexType, getPlanSQL, getRow, getType, initBaseIndex, isFindUsingFullTableScan, isFirstColumn, isHidden, isRowIdIndex, mayHaveNullDuplicates, removeChildrenAndResources, setSortedInsertMode
-
Methods inherited from class org.h2.engine.DbObjectBase
getChildren, getComment, getDatabase, getId, getModificationId, getName, initDbObjectBase, invalidate, isTemporary, isValid, rename, setComment, setModified, setObjectName, setTemporary, toString
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Constructor Detail
-
H2TreeClientIndex
public H2TreeClientIndex(Index idx, GridH2Table tbl, String name, org.h2.table.IndexColumn[] cols, org.h2.index.IndexType idxType)
- Parameters:
tbl- Table.name- Index name.cols- Index columns.idxType- Index type.
-
-
Method Detail
-
refreshColumnIds
public void refreshColumnIds()
Re-assign column ids after removal of column(s).- Overrides:
refreshColumnIdsin classGridH2IndexBase
-
totalRowCount
public long totalRowCount(IndexingQueryCacheFilter partsFilter)
- Specified by:
totalRowCountin classGridH2IndexBase- Parameters:
partsFilter- Partitions filter.- Returns:
- Total row count in the current index for filtered partitions.
-
segmentsCount
public int segmentsCount()
- Specified by:
segmentsCountin classGridH2IndexBase- Returns:
- Index segments count.
-
find
public org.h2.index.Cursor find(org.h2.engine.Session ses, org.h2.result.SearchRow lower, org.h2.result.SearchRow upper)
-
put
public H2CacheRow put(H2CacheRow row)
Puts row.- Specified by:
putin classGridH2IndexBase- Parameters:
row- Row.- Returns:
- Existing row or
null.
-
putx
public boolean putx(H2CacheRow row)
Puts row.- Specified by:
putxin classGridH2IndexBase- Parameters:
row- Row.- Returns:
Trueif existing row row has been replaced.
-
removex
public boolean removex(org.h2.result.SearchRow row)
Removes row from index.- Specified by:
removexin classGridH2IndexBase- Parameters:
row- Row.- Returns:
Trueif row has been removed.
-
getRowCount
public long getRowCount(org.h2.engine.Session ses)
-
findFirstOrLast
public org.h2.index.Cursor findFirstOrLast(org.h2.engine.Session session, boolean first)
-
unwrap
public <T extends Index> T unwrap(Class<T> clazz)
Finds an instance of an interface implemented by this object, or returns null if this object does not support that interface.- Overrides:
unwrapin classGridH2IndexBase
-
-