Class 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.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 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

      • 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:
        canScan in interface org.h2.index.Index
        Overrides:
        canScan in class org.h2.index.BaseIndex
      • putx

        public boolean putx​(H2CacheRow row)
        Puts row.
        Specified by:
        putx in class GridH2IndexBase
        Parameters:
        row - Row.
        Returns:
        True if existing row row has been replaced.
      • removex

        public boolean removex​(org.h2.result.SearchRow row)
        Removes row from index.
        Specified by:
        removex in class GridH2IndexBase
        Parameters:
        row - Row.
        Returns:
        True if 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)
      • 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)