public class GridH2SpatialIndex extends GridH2IndexBase implements org.h2.index.SpatialIndex
GridH2IndexBase.FilteringIteratorfilters, keyCol, valCol| Constructor and Description |
|---|
GridH2SpatialIndex(org.h2.table.Table tbl,
String idxName,
org.h2.table.IndexColumn[] cols,
int keyCol,
int valCol) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canGetFirstOrLast() |
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 |
findByGeometry(org.h2.table.TableFilter filter,
org.h2.result.SearchRow intersection) |
org.h2.index.Cursor |
findFirstOrLast(org.h2.engine.Session ses,
boolean first) |
double |
getCost(org.h2.engine.Session ses,
int[] masks,
org.h2.table.TableFilter filter,
org.h2.result.SortOrder sortOrder) |
protected long |
getCostRangeIndex(int[] masks,
long rowCnt,
org.h2.table.TableFilter filter,
org.h2.result.SortOrder sortOrder) |
long |
getRowCount(org.h2.engine.Session ses) |
long |
getRowCountApproximation() |
GridH2Row |
put(GridH2Row row,
boolean ifAbsent)
Put row if absent.
|
GridH2Row |
remove(org.h2.result.SearchRow row)
Remove row from index.
|
add, checkRename, filter, getDiskSpaceUsed, needRebuild, rebuild, releaseSnapshot, remove, remove, setFiltersForThread, takeSnapshot, truncatecanFindNext, canScan, checkIndexColumnTypes, commit, compareRows, containsNullAndAllowMultipleNull, find, findNext, getColumnIndex, getColumns, getCreateSQL, getCreateSQLForCopy, getDropSQL, getDuplicateKeyException, getIndexColumns, getIndexType, getPlanSQL, getRow, getTable, getType, initBaseIndex, isHidden, isRowIdIndex, removeChildrenAndResources, setSortedInsertModegetChildren, getComment, getDatabase, getId, getModificationId, getName, initDbObjectBase, invalidate, isTemporary, rename, setComment, setModified, setObjectName, setTemporary, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic GridH2SpatialIndex(org.h2.table.Table tbl,
String idxName,
org.h2.table.IndexColumn[] cols,
int keyCol,
int valCol)
tbl - Table.idxName - Index name.cols - Columns.keyCol - Key column.valCol - Value column.public GridH2Row put(GridH2Row row, boolean ifAbsent)
put in class GridH2IndexBaserow - Row.ifAbsent - Put only if such a row does not exist.public GridH2Row remove(org.h2.result.SearchRow row)
remove in class GridH2IndexBaserow - Row.public void close(org.h2.engine.Session ses)
close in interface org.h2.index.Indexprotected long getCostRangeIndex(int[] masks,
long rowCnt,
org.h2.table.TableFilter filter,
org.h2.result.SortOrder sortOrder)
getCostRangeIndex in class org.h2.index.BaseIndexpublic double getCost(org.h2.engine.Session ses,
int[] masks,
org.h2.table.TableFilter filter,
org.h2.result.SortOrder sortOrder)
getCost in interface org.h2.index.Indexpublic org.h2.index.Cursor find(org.h2.engine.Session ses,
org.h2.result.SearchRow first,
org.h2.result.SearchRow last)
find in interface org.h2.index.Indexpublic boolean canGetFirstOrLast()
canGetFirstOrLast in interface org.h2.index.Indexpublic org.h2.index.Cursor findFirstOrLast(org.h2.engine.Session ses,
boolean first)
findFirstOrLast in interface org.h2.index.Indexpublic long getRowCount(org.h2.engine.Session ses)
getRowCount in interface org.h2.index.Indexpublic long getRowCountApproximation()
getRowCountApproximation in interface org.h2.index.Indexpublic org.h2.index.Cursor findByGeometry(org.h2.table.TableFilter filter,
org.h2.result.SearchRow intersection)
findByGeometry in interface org.h2.index.SpatialIndexCopyright © 2014. All rights reserved.