MVSpatialIndex

This is an index based on a MVRTreeMap.

Methods
MVSpatialIndex(Database db, MVTable table, int id, String indexName, IndexColumn[] columns, IndexType indexType)
Constructor.
MVSpatialIndex(Database db, MVTable table, int id, String indexName, IndexColumn[] columns, IndexType indexType)
Constructor.
Parameters:
db - the database
table - the table instance
id - the index id
indexName - the index name
columns - the indexed columns (only one geometry column allowed)
indexType - the index type (only spatial index)
void add(Session session, Row row)
void add(Session session, Row row)
void addBufferedRows(List bufferNames)
void addBufferedRows(List bufferNames)
void addRowsToBuffer(List rows, String bufferName)
void addRowsToBuffer(List rows, String bufferName)
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()
TransactionStore.TransactionMap getMap(Session session)
Get the map to store the data.
TransactionStore.TransactionMap getMap(Session session)
Get the map to store the data.
Parameters:
session - the session
Returns:
the map
SearchRow getRow(SpatialKey key)
Get the row with the given index key.
SearchRow getRow(SpatialKey key)
Get the row with the given index key.
Parameters:
key - the index key
Returns:
the row
long getRowCount(Session session)
long getRowCount(Session session)
long getRowCountApproximation()
long getRowCountApproximation()
MVTable getTable()
MVTable getTable()
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)