Class H2PkHashIndex
- 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.H2PkHashIndex
-
- All Implemented Interfaces:
org.h2.engine.DbObject,org.h2.index.Index,org.h2.schema.SchemaObject
public class H2PkHashIndex extends GridH2IndexBase
-
-
Field Summary
-
Fields inherited from class org.apache.ignite.internal.processors.query.h2.opt.H2IndexCostedBase
tbl
-
-
Constructor Summary
Constructors Constructor Description H2PkHashIndex(GridCacheContext<?,?> cctx, GridH2Table tbl, String name, List<org.h2.table.IndexColumn> colsList, int segments)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancanGetFirstOrLast()booleancanScan()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 ses, boolean b)doublegetCost(org.h2.engine.Session ses, int[] masks, org.h2.table.TableFilter[] filters, int filter, org.h2.result.SortOrder sortOrder, HashSet<org.h2.table.Column> allColumnsSet)longgetRowCount(org.h2.engine.Session ses)H2CacheRowput(H2CacheRow row)Puts row.booleanputx(H2CacheRow row)Puts row.booleanremovex(org.h2.result.SearchRow row)Removes row from index.intsegmentsCount()longtotalRowCount(IndexingQueryCacheFilter partsFilter)-
Methods inherited from class org.apache.ignite.internal.processors.query.h2.opt.GridH2IndexBase
add, checkRename, close, columnsArray, destroy, getDiskSpaceUsed, getDistributedMultiplier, getRowCountApproximation, getTable, needRebuild, queryContextRegistry, refreshColumnIds, remove, remove, rowDescriptor, segment, segmentForPartition, segmentForRow, truncate, unwrap
-
Methods inherited from class org.apache.ignite.internal.processors.query.h2.opt.H2IndexCostedBase
getCostRangeIndex
-
Methods inherited from class org.h2.index.BaseIndex
canFindNext, 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
-
H2PkHashIndex
public H2PkHashIndex(GridCacheContext<?,?> cctx, GridH2Table tbl, String name, List<org.h2.table.IndexColumn> colsList, int segments)
- Parameters:
cctx- Cache context.tbl- Table.name- Index name.colsList- Index columns.segments- Segments.
-
-
Method Detail
-
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)
-
canScan
public boolean canScan()
- Specified by:
canScanin interfaceorg.h2.index.Index- Overrides:
canScanin classorg.h2.index.BaseIndex
-
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.
-
getCost
public double getCost(org.h2.engine.Session ses, int[] masks, org.h2.table.TableFilter[] filters, int filter, org.h2.result.SortOrder sortOrder, HashSet<org.h2.table.Column> allColumnsSet)
-
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.
-
getRowCount
public long getRowCount(org.h2.engine.Session ses)
-
canGetFirstOrLast
public boolean canGetFirstOrLast()
-
findFirstOrLast
public org.h2.index.Cursor findFirstOrLast(org.h2.engine.Session ses, boolean b)
-
-