SpatialTreeIndex
This is an index based on a MVR-TreeMap.
| Methods |
| static long |
getCostRangeIndex(int[] masks, Column[] columns)
Compute spatial index cost
|
| static long |
getCostRangeIndex(int[] masks, Column[] columns)
Compute spatial index cost
Parameters:
masks - Search mask
columns - Table columns
Returns:
Index cost hint
|
|
SpatialTreeIndex(Table table, int id, String indexName, IndexColumn[] columns, IndexType indexType, boolean persistent, boolean create, Session session)
Constructor.
|
|
SpatialTreeIndex(Table table, int id, String indexName, IndexColumn[] columns, IndexType indexType, boolean persistent, boolean create, Session session)
Constructor.
Parameters:
table - the table instance
id - the index id
indexName - the index name
columns - the indexed columns (only one geometry column allowed)
persistent - whether the index should be persisted
indexType - the index type (only spatial index)
create - whether to create a new index
session - the session.
|
| void |
add(Session session, Row row)
|
| void |
add(Session session, Row row)
|
| boolean |
canGetFirstOrLast()
|
| boolean |
canGetFirstOrLast()
|
| void |
checkRename()
|
| void |
checkRename()
|
| void |
close(Session session)
|
| void |
close(Session session)
|
| Cursor |
find(TableFilter filter, SearchRow first, SearchRow last)
|
| Cursor |
find(TableFilter filter, SearchRow first, SearchRow last)
|
| Cursor |
find(Session session, SearchRow first, SearchRow last)
|
| Cursor |
find(Session session, SearchRow first, SearchRow last)
|
| Cursor |
findByGeometry(TableFilter filter, SearchRow first, SearchRow last, SearchRow intersection)
|
| Cursor |
findByGeometry(TableFilter filter, SearchRow first, SearchRow last, SearchRow intersection)
|
| Cursor |
findFirstOrLast(Session session, boolean first)
|
| Cursor |
findFirstOrLast(Session session, boolean first)
|
| double |
getCost(Session session, int[] masks, TableFilter[] filters, int filter, SortOrder sortOrder, HashSet allColumnsSet)
|
| double |
getCost(Session session, int[] masks, TableFilter[] filters, int filter, SortOrder sortOrder, HashSet allColumnsSet)
|
| long |
getDiskSpaceUsed()
|
| long |
getDiskSpaceUsed()
|
| long |
getRowCount(Session session)
|
| long |
getRowCount(Session session)
|
| long |
getRowCountApproximation()
|
| long |
getRowCountApproximation()
|
| boolean |
needRebuild()
|
| boolean |
needRebuild()
|
| void |
remove(Session session, Row row)
|
| void |
remove(Session session, Row row)
|
| void |
remove(Session session)
|
| void |
remove(Session session)
|
| void |
truncate(Session session)
|
| void |
truncate(Session session)
|
|