Class GridH2ProxySpatialIndex
- java.lang.Object
-
- org.h2.engine.DbObjectBase
-
- org.h2.schema.SchemaObjectBase
-
- org.h2.index.BaseIndex
-
- org.apache.ignite.internal.processors.query.h2.opt.H2IndexCostedBase
-
- org.apache.ignite.internal.processors.query.h2.opt.GridH2ProxyIndex
-
- org.apache.ignite.internal.processors.query.h2.opt.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.apache.ignite.internal.processors.query.h2.opt.H2IndexCostedBase
tbl
-
-
Constructor Summary
Constructors Constructor Description GridH2ProxySpatialIndex(GridH2Table tbl, String name, List<org.h2.table.IndexColumn> colsList, org.h2.index.Index idx)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.h2.index.CursorfindByGeometry(org.h2.table.TableFilter filter, org.h2.result.SearchRow first, org.h2.result.SearchRow last, org.h2.result.SearchRow intersection)doublegetCost(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.apache.ignite.internal.processors.query.h2.opt.GridH2ProxyIndex
add, canGetFirstOrLast, checkRename, close, createLookupBatch, find, findFirstOrLast, getDiskSpaceUsed, getRowCount, getRowCountApproximation, needRebuild, prepareProxyIndexRow, remove, remove, truncate, underlyingIndex
-
Methods inherited from class org.apache.ignite.internal.processors.query.h2.opt.H2IndexCostedBase
getCostRangeIndex
-
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.engine.DbObjectBase
getChildren, getComment, getDatabase, getId, getModificationId, getName, initDbObjectBase, invalidate, isTemporary, isValid, rename, setComment, setModified, setObjectName, setTemporary, toString
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
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
-
-
-
-
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:
getCostin interfaceorg.h2.index.Index- Overrides:
getCostin classGridH2ProxyIndex
-
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:
findByGeometryin interfaceorg.h2.index.SpatialIndex
-
-