Class AbstractReduceIndexAdapter

  • All Implemented Interfaces:
    org.h2.engine.DbObject, org.h2.index.Index, org.h2.schema.SchemaObject
    Direct Known Subclasses:
    SortedReduceIndexAdapter, UnsortedReduceIndexAdapter

    public abstract class AbstractReduceIndexAdapter
    extends org.h2.index.BaseIndex
    H2 Index adapter base class.
    • 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
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void add​(org.h2.engine.Session ses, org.h2.result.Row row)
      boolean canGetFirstOrLast()
      void checkRename()
      void close​(org.h2.engine.Session ses)
      org.h2.index.Cursor find​(org.h2.engine.Session ses, org.h2.result.SearchRow first, org.h2.result.SearchRow last)
      org.h2.index.Cursor findFirstOrLast​(org.h2.engine.Session ses, boolean first)
      long getDiskSpaceUsed()
      long getRowCount​(org.h2.engine.Session ses)
      long getRowCountApproximation()
      boolean needRebuild()
      void remove​(org.h2.engine.Session ses)
      void remove​(org.h2.engine.Session ses, org.h2.result.Row row)
      void truncate​(org.h2.engine.Session ses)
      • 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

        getChildren, getComment, getDatabase, getId, getModificationId, getName, initDbObjectBase, invalidate, isTemporary, isValid, rename, setComment, setModified, setObjectName, setTemporary, toString
      • Methods inherited from interface org.h2.engine.DbObject

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

        getCost
      • Methods inherited from interface org.h2.schema.SchemaObject

        getSchema
    • Constructor Detail

      • AbstractReduceIndexAdapter

        protected AbstractReduceIndexAdapter​(GridKernalContext ctx,
                                             org.h2.table.Table tbl,
                                             String name,
                                             org.h2.index.IndexType type,
                                             org.h2.table.IndexColumn[] cols)
        Parameters:
        ctx - Context.
        tbl - Table.
        name - Index name.
        type - Type.
        cols - Columns.
    • Method Detail

      • getRowCount

        public long getRowCount​(org.h2.engine.Session ses)
      • getRowCountApproximation

        public long getRowCountApproximation()
      • find

        public final org.h2.index.Cursor find​(org.h2.engine.Session ses,
                                              org.h2.result.SearchRow first,
                                              org.h2.result.SearchRow last)
      • checkRename

        public void checkRename()
        Specified by:
        checkRename in interface org.h2.engine.DbObject
        Specified by:
        checkRename in class org.h2.engine.DbObjectBase
      • close

        public void close​(org.h2.engine.Session ses)
      • add

        public void add​(org.h2.engine.Session ses,
                        org.h2.result.Row row)
      • remove

        public void remove​(org.h2.engine.Session ses,
                           org.h2.result.Row row)
      • remove

        public void remove​(org.h2.engine.Session ses)
      • truncate

        public void truncate​(org.h2.engine.Session ses)
      • canGetFirstOrLast

        public boolean canGetFirstOrLast()
      • findFirstOrLast

        public org.h2.index.Cursor findFirstOrLast​(org.h2.engine.Session ses,
                                                   boolean first)
      • needRebuild

        public boolean needRebuild()
      • getDiskSpaceUsed

        public long getDiskSpaceUsed()