Class GridH2ProxySpatialIndex

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

    public class GridH2ProxySpatialIndex
    extends GridH2ProxyIndex
    implements org.h2.index.SpatialIndex
    Allows to have 'free' spatial index for alias columns Delegates the calls to underlying normal index
    • Field Summary

      • Fields inherited from class org.apache.ignite.internal.processors.query.h2.opt.GridH2ProxyIndex

        idx
      • 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
      org.h2.index.Cursor findByGeometry​(org.h2.table.TableFilter filter, org.h2.result.SearchRow first, org.h2.result.SearchRow last, org.h2.result.SearchRow intersection)
      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> cols)
      • Methods inherited from class org.h2.index.BaseIndex

        canFindNext, canScan, checkIndexColumnTypes, commit, compareRows, 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

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

        add, canFindNext, canGetFirstOrLast, canScan, close, commit, compareRows, createLookupBatch, find, find, findFirstOrLast, findNext, getColumnIndex, getColumns, getDiskSpaceUsed, getIndexColumns, getIndexType, getPlanSQL, getRow, getRowCount, getRowCountApproximation, getTable, isFindUsingFullTableScan, isFirstColumn, isRowIdIndex, needRebuild, remove, remove, setSortedInsertMode, truncate
      • Methods inherited from interface org.h2.schema.SchemaObject

        getSchema, isHidden
    • Constructor Detail

      • GridH2ProxySpatialIndex

        public GridH2ProxySpatialIndex​(GridH2Table tbl,
                                       String name,
                                       List<org.h2.table.IndexColumn> colsList,
                                       org.h2.index.Index idx)
        Parameters:
        tbl - Table.
        name - Name of the proxy index.
        colsList - Column list for the proxy index.
        idx - Target index.
    • 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> cols)
        Specified by:
        getCost in interface org.h2.index.Index
        Overrides:
        getCost in class GridH2ProxyIndex
      • findByGeometry

        public org.h2.index.Cursor findByGeometry​(org.h2.table.TableFilter filter,
                                                  org.h2.result.SearchRow first,
                                                  org.h2.result.SearchRow last,
                                                  org.h2.result.SearchRow intersection)
        Specified by:
        findByGeometry in interface org.h2.index.SpatialIndex