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

      • 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:
        refreshColumnIds in class GridH2IndexBase
      • find

        public org.h2.index.Cursor find​(org.h2.engine.Session ses,
                                        org.h2.result.SearchRow lower,
                                        org.h2.result.SearchRow upper)
      • 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.
      • 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:
        unwrap in class GridH2IndexBase