| Modifier and Type | Class and Description |
|---|---|
| private class | MVSpatialIndex.
A cursor for getBounds() method. |
| private static class | MVSpatialIndex.
A cursor. |
| private static class |
| Modifier and Type | Field and Description |
|---|---|
| private final TransactionMap | |
| pack-priv final MVTable | mvTable
The multi-value table. |
| private final MVRTreeMap |
| Access | Constructor and Description |
|---|---|
| public | MVSpatialIndex(Database
the database db, MVTable the table instance table, int the index id id, String the index name indexName, IndexColumn[] the indexed columns (only one geometry column allowed) columns, int count of unique columns (0 or 1) uniqueColumnCount, IndexType the index type (only spatial index) indexType)Constructor. |
| Modifier and Type | Method and Description |
|---|---|
| public void | add(SessionLocal
the session to use session, Row the row to add row)Implements abstract org. Add a row to the index. |
| public void | addBufferedRows(List<String>
the names of the temporary storage bufferNames)Implements abstract org. Add all the index data from the buffers to the index. |
| public void | addRowsToBuffer(List<Row>
the rows rows, String the name of the temporary storage bufferName)Implements abstract org. Add the rows to a temporary storage (not to the index yet). |
| public void | close(SessionLocal
the session used to write data session)Implements abstract org. Close this index. |
| public Cursor | find(SessionLocal
the session session, SearchRow the first row, or null for no limit first, SearchRow the last row, or null for no limit last, boolean if true, iterate in reverse (descending) order reverse)Implements abstract org. Find a row or a list of rows and create a cursor to iterate over the result. |
| public Cursor | findByGeometry(SessionLocal
the session session, SearchRow the lower bound first, SearchRow the upper bound last, boolean if true, iterate in reverse (descending) order reverse, SearchRow the geometry which values should intersect with, or
null for anything intersection)Implements org. Find a row or a list of rows and create a cursor to iterate over the result. |
| public Value | Returns: the minimum bounding box that encloses all keys, or nullthe session session)Returns the minimum bounding box that encloses all keys. |
| public double | getCost(SessionLocal
the session session, int[] per-column comparison bit masks, null means 'always false',
see constants in IndexCondition masks, TableFilter[] all joined table filters filters, int the current table filter index filter, SortOrder the sort order sortOrder, AllColumnsForPlan the set of all columns allColumnsSet)Implements abstract org. Estimate the cost to search for rows given the search mask. |
| public Value | Returns: the estimated minimum bounding box that encloses all keys, or nullthe session session)Returns the estimated minimum bounding box that encloses all keys. |
| private SpatialKey | |
| private TransactionMap | |
| public MVMap | |
| public long | getRowCount(SessionLocal
the session session)Implements abstract org. Get the row count of this table, for the given session. |
| public long | getRowCountApproximation(SessionLocal
the session session)Implements abstract org. Get the approximated row count for this table. |
| public MVTable | |
| public boolean | needRebuild()
Implements abstract org. Check if the index needs to be rebuilt. |
| public void | remove(SessionLocal
the session session, Row the row row)Implements abstract org. Remove a row from the index. |
| public void | remove(SessionLocal
the session session)Implements abstract org. Remove the index. |
| public void | truncate(SessionLocal
the session session)Implements abstract org. Remove all rows from the index. |
| dataMap | back to summary |
|---|---|
| private final TransactionMap<Spatial, Value> dataMap | |
| mvTable | back to summary |
|---|---|
| pack-priv final MVTable mvTable The multi-value table. | |
| spatialMap | back to summary |
|---|---|
| private final MVRTreeMap<VersionedValue<Value>> spatialMap | |
| MVSpatialIndex | back to summary |
|---|---|
| public MVSpatialIndex(Database db, MVTable table, int id, String indexName, IndexColumn[] columns, int uniqueColumnCount, IndexType indexType) Constructor.
| |
| add | back to summary |
|---|---|
| public void add(SessionLocal session, Row row) Implements abstract org. Doc from org. Add a row to the index.
| |
| addBufferedRows | back to summary |
|---|---|
| public void addBufferedRows(List<String> bufferNames) Implements abstract org. Doc from org. Add all the index data from the buffers to the index. The index will typically use merge sort to add the data more quickly in sorted order. | |
| addRowsToBuffer | back to summary |
|---|---|
| public void addRowsToBuffer(List<Row> rows, String bufferName) Implements abstract org. Doc from org. Add the rows to a temporary storage (not to the index yet). The rows are sorted by the index columns. This is to more quickly build the index. | |
| close | back to summary |
|---|---|
| public void close(SessionLocal session) Implements abstract org. Doc from org. Close this index.
| |
| find | back to summary |
|---|---|
| public Cursor find(SessionLocal session, SearchRow first, SearchRow last, boolean reverse) Implements abstract org. Doc from org. Find a row or a list of rows and create a cursor to iterate over the result.
| |
| findByGeometry | back to summary |
|---|---|
| public Cursor findByGeometry(SessionLocal session, SearchRow first, SearchRow last, boolean reverse, SearchRow intersection) Implements org. Doc from org. Find a row or a list of rows and create a cursor to iterate over the result.
| |
| getBounds | back to summary |
|---|---|
| public Value getBounds(SessionLocal session) Returns the minimum bounding box that encloses all keys.
| |
| getCost | back to summary |
|---|---|
| public double getCost(SessionLocal session, int[] masks, TableFilter[] filters, int filter, SortOrder sortOrder, AllColumnsForPlan allColumnsSet) Implements abstract org. Doc from org. Estimate the cost to search for rows given the search mask. There is one element per column in the search mask. For possible search masks, see IndexCondition.
| |
| getEstimatedBounds | back to summary |
|---|---|
| public Value getEstimatedBounds(SessionLocal session) Returns the estimated minimum bounding box that encloses all keys. The returned value may be incorrect.
| |
| getKey | back to summary |
|---|---|
| private SpatialKey getKey(SearchRow row) | |
| getMap | back to summary |
|---|---|
| private TransactionMap Get the map to store the data.
| |
| getMVMap | back to summary |
|---|---|
| public MVMap Implements abstract org.
| |
| getRowCount | back to summary |
|---|---|
| public long getRowCount(SessionLocal session) Implements abstract org. Doc from org. Get the row count of this table, for the given session.
| |
| getRowCountApproximation | back to summary |
|---|---|
| public long getRowCountApproximation(SessionLocal session) Implements abstract org. Doc from org. Get the approximated row count for this table.
| |
| getTable | back to summary |
|---|---|
| public MVTable getTable() Overrides org. Doc from org. Get the table on which this index is based. | |
| needRebuild | back to summary |
|---|---|
| public boolean needRebuild() Implements abstract org. Doc from org. Check if the index needs to be rebuilt. This method is called after opening an index.
| |
| remove | back to summary |
|---|---|
| public void remove(SessionLocal session, Row row) Implements abstract org. Doc from org. Remove a row from the index.
| |
| remove | back to summary |
|---|---|
| public void remove(SessionLocal session) Implements abstract org. Doc from org. Remove the index.
| |
| truncate | back to summary |
|---|---|
| public void truncate(SessionLocal session) Implements abstract org. Doc from org. Remove all rows from the index.
| |
| Modifier and Type | Field and Description |
|---|---|
| private double | |
| private float | |
| private double | |
| private float | |
| private double | |
| private float | |
| private double | |
| private float | |
| private final int | |
| private boolean | |
| private final TransactionMap | |
| private final SessionLocal |
| Access | Constructor and Description |
|---|---|
| pack-priv | FindBoundsCursor(Page<Spatial, VersionedValue<Value>> root, Spatial filter, SessionLocal session, TransactionMap<Spatial, Value> map, int columnId)
|
| Modifier and Type | Method and Description |
|---|---|
| protected boolean | check(boolean
if the key is from a leaf page leaf, Spatial the stored key key, Spatial the user-supplied test key test)Implements abstract org. Check a given key. |
| pack-priv Value |
| bmaxxd | back to summary |
|---|---|
| private double bmaxxd | |
| bmaxxf | back to summary |
|---|---|
| private float bmaxxf | |
| bmaxyd | back to summary |
|---|---|
| private double bmaxyd | |
| bmaxyf | back to summary |
|---|---|
| private float bmaxyf | |
| bminxd | back to summary |
|---|---|
| private double bminxd | |
| bminxf | back to summary |
|---|---|
| private float bminxf | |
| bminyd | back to summary |
|---|---|
| private double bminyd | |
| bminyf | back to summary |
|---|---|
| private float bminyf | |
| columnId | back to summary |
|---|---|
| private final int columnId | |
| hasBounds | back to summary |
|---|---|
| private boolean hasBounds | |
| map | back to summary |
|---|---|
| private final TransactionMap<Spatial, Value> map | |
| session | back to summary |
|---|---|
| private final SessionLocal session | |
| FindBoundsCursor | back to summary |
|---|---|
| pack-priv FindBoundsCursor(Page<Spatial, VersionedValue<Value>> root, Spatial filter, SessionLocal session, TransactionMap<Spatial, Value> map, int columnId) | |
| check | back to summary |
|---|---|
| protected boolean check(boolean leaf, Spatial key, Spatial test) Implements abstract org. Doc from org. Check a given key. | |
| getBounds | back to summary |
|---|---|
| pack-priv Value getBounds() | |
| Modifier and Type | Field and Description |
|---|---|
| private Spatial | |
| private final Iterator | |
| private final MVTable | |
| private Row | |
| private SearchRow | |
| private final SessionLocal |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public Row | |
| public SearchRow | |
| public boolean | |
| public boolean |
| current | back to summary |
|---|---|
| private Spatial current | |
| it | back to summary |
|---|---|
| private final Iterator<Spatial> it | |
| mvTable | back to summary |
|---|---|
| private final MVTable mvTable | |
| row | back to summary |
|---|---|
| private Row row | |
| searchRow | back to summary |
|---|---|
| private SearchRow searchRow | |
| session | back to summary |
|---|---|
| private final SessionLocal session | |
| MVStoreCursor | back to summary |
|---|---|
| pack-priv MVStoreCursor(SessionLocal session, Iterator<Spatial> it, MVTable mvTable) | |
| get | back to summary |
|---|---|
| public Row get() Implements org. Doc from org. Get the complete current row. All column are available. | |
| getSearchRow | back to summary |
|---|---|
| public SearchRow getSearchRow() Implements org. Doc from org. Get the current row. Only the data for indexed columns is available in this row. | |
| next | back to summary |
|---|---|
| public boolean next() Implements org. Doc from org. Skip to the next row if one is available.
| |
| previous | back to summary |
|---|---|
| public boolean previous() Implements org. Doc from org. Skip to the previous row if one is available. No filtering is made here.
| |
| Modifier and Type | Field and Description |
|---|---|
| private Spatial | |
| private final boolean | |
| private final Iterator | |
| private final TransactionMap |
| Access | Constructor and Description |
|---|---|
| pack-priv | SpatialKeyIterator(TransactionMap<Spatial, Value> map, Iterator<Spatial> iterator, boolean includeUncommitted)
|
| Modifier and Type | Method and Description |
|---|---|
| private void | |
| public boolean | |
| public Spatial |
| current | back to summary |
|---|---|
| private Spatial current | |
| includeUncommitted | back to summary |
|---|---|
| private final boolean includeUncommitted | |
| iterator | back to summary |
|---|---|
| private final Iterator<Spatial> iterator | |
| map | back to summary |
|---|---|
| private final TransactionMap<Spatial, Value> map | |
| SpatialKeyIterator | back to summary |
|---|---|
| pack-priv SpatialKeyIterator(TransactionMap<Spatial, Value> map, Iterator<Spatial> iterator, boolean includeUncommitted) | |
| fetchNext | back to summary |
|---|---|
| private void fetchNext() | |
| hasNext | back to summary |
|---|---|
| public boolean hasNext() Implements java. Doc from java. Returns
| |
| next | back to summary |
|---|---|
| public Spatial next() Implements java. Doc from java. Returns the next element in the iteration. | |