Class 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.BaseIndex
    Index base.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected GridH2Table tbl
      GridH2Table.
      • Fields inherited from class org.h2.index.BaseIndex

        columnIds, columns, indexColumns, indexType, isMultiVersion, table
      • Fields inherited from class org.h2.engine.DbObjectBase

        comment, database, trace
      • Fields inherited from interface org.h2.engine.DbObject

        AGGREGATE, COMMENT, CONSTANT, CONSTRAINT, FUNCTION_ALIAS, INDEX, RIGHT, ROLE, SCHEMA, SEQUENCE, SETTING, SYNONYM, TABLE_OR_VIEW, TRIGGER, USER, USER_DATATYPE
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected H2IndexCostedBase​(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
      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.
      • 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.schema.SchemaObjectBase

        getSchema, getSQL, initSchemaObjectBase
      • 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 interface org.h2.engine.DbObject

        checkRename, getChildren, getComment, getDatabase, getId, getName, getSQL, isTemporary, rename, setComment, setTemporary
      • Methods inherited from interface org.h2.index.Index

        add, canGetFirstOrLast, close, find, findFirstOrLast, getCost, getDiskSpaceUsed, getRowCount, getRowCountApproximation, needRebuild, remove, remove, truncate
      • Methods inherited from interface org.h2.schema.SchemaObject

        getSchema
    • 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.