Class SortedReduceIndexAdapter

  • All Implemented Interfaces:
    org.h2.engine.DbObject, org.h2.index.Index, org.h2.schema.SchemaObject

    public final class SortedReduceIndexAdapter
    extends AbstractReduceIndexAdapter
    H2 Index adapter for SortedReducer.
    • 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
      int compareRows​(org.h2.result.SearchRow rowData, org.h2.result.SearchRow compare)
      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)
      protected SortedReducer reducer()
      • Methods inherited from class org.h2.index.BaseIndex

        canFindNext, canScan, checkIndexColumnTypes, commit, 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.schema.SchemaObject

        getSchema
    • Constructor Detail

      • SortedReduceIndexAdapter

        public SortedReduceIndexAdapter​(GridKernalContext ctx,
                                        ReduceTable tbl,
                                        String name,
                                        org.h2.table.IndexColumn[] cols)
        Parameters:
        ctx - Kernal context.
        tbl - Table.
        name - Index name,
        cols - Columns.
    • Method Detail

      • 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)
      • compareRows

        public int compareRows​(org.h2.result.SearchRow rowData,
                               org.h2.result.SearchRow compare)
        Specified by:
        compareRows in interface org.h2.index.Index
        Overrides:
        compareRows in class org.h2.index.BaseIndex