Class H2IndexCostedBase
- java.lang.Object
-
- org.h2.engine.DbObjectBase
-
- org.h2.schema.SchemaObjectBase
-
- org.h2.index.BaseIndex
-
- org.apache.ignite.internal.processors.query.h2.opt.H2IndexCostedBase
-
- All Implemented Interfaces:
org.h2.engine.DbObject,org.h2.index.Index,org.h2.schema.SchemaObject
- Direct Known Subclasses:
GridH2IndexBase,GridH2ProxyIndex
public abstract class H2IndexCostedBase extends org.h2.index.BaseIndexIndex base.
-
-
Field Summary
Fields Modifier and Type Field Description protected GridH2TabletblGridH2Table.
-
Constructor Summary
Constructors Modifier Constructor Description protectedH2IndexCostedBase(GridH2Table tbl, String name, org.h2.table.IndexColumn[] cols, org.h2.index.IndexType type)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description longgetCostRangeIndex(org.h2.engine.Session ses, int[] masks, long rowCount, org.h2.table.TableFilter[] filters, int filter, org.h2.result.SortOrder sortOrder, boolean isScanIndex, HashSet<org.h2.table.Column> allColumnsSet)Get cost range.-
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, getTable, getType, initBaseIndex, isFindUsingFullTableScan, isFirstColumn, isHidden, isRowIdIndex, mayHaveNullDuplicates, removeChildrenAndResources, setSortedInsertMode
-
Methods inherited from class org.h2.engine.DbObjectBase
checkRename, 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
-
Methods inherited from interface org.h2.engine.DbObject
checkRename, getChildren, getComment, getDatabase, getId, getName, getSQL, isTemporary, rename, setComment, setTemporary
-
-
-
-
Field Detail
-
tbl
protected GridH2Table tbl
GridH2Table.
-
-
Constructor Detail
-
H2IndexCostedBase
protected H2IndexCostedBase(GridH2Table tbl, String name, org.h2.table.IndexColumn[] cols, org.h2.index.IndexType type)
Constructor.- Parameters:
tbl- Table.name- Index name.cols- Indexed columns.type- Index type.
-
-
Method Detail
-
getCostRangeIndex
public long getCostRangeIndex(org.h2.engine.Session ses, int[] masks, long rowCount, org.h2.table.TableFilter[] filters, int filter, org.h2.result.SortOrder sortOrder, boolean isScanIndex, HashSet<org.h2.table.Column> allColumnsSet)Get cost range.- Parameters:
ses- Session.masks- Condition masks.rowCount- Total row count.filters- Filters array.filter- Filter array index.sortOrder- Sort order.isScanIndex- Flag if current index is a scan index.allColumnsSet- All columns to select.- Returns:
- The cost.
-
-