| Modifier and Type | Field and Description |
|---|---|
| private final MVPrimaryIndex |
| Access | Constructor and Description |
|---|---|
| public |
| 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 boolean | canGetFirstOrLast()
Overrides org. Check if the index can directly look up the lowest or highest value of a column. |
| 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 | findFirstOrLast(SessionLocal
the session session, boolean true if the first (lowest for ascending indexes) or last
value should be returned first)Overrides org. Find the first (or last) value of this index. |
| public int | getColumnIndex(Column
the column col)Overrides org. Get the index of a column in the list of index columns |
| 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 MVMap | |
| public Row | getRow(SessionLocal
the session session, long the unique key key)Overrides org. Get the row with the given key. |
| 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 RowFactory | |
| public boolean | isFirstColumn(Column
the column column)Overrides org. Check if the given column is the first for this index |
| public boolean | |
| 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. |
| public void | update(SessionLocal
the session session, Row row before the update oldRow, Row row after the update newRow)Overrides org. Update index after row change. |
| mainIndex | back to summary |
|---|---|
| private final MVPrimaryIndex mainIndex | |
| MVDelegateIndex | back to summary |
|---|---|
| public MVDelegateIndex(MVTable table, int id, String name, MVPrimaryIndex mainIndex, IndexType indexType) | |
| 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. | |
| canGetFirstOrLast | back to summary |
|---|---|
| public boolean canGetFirstOrLast() Overrides org. Doc from org. Check if the index can directly look up the lowest or highest value of a column.
| |
| 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.
| |
| findFirstOrLast | back to summary |
|---|---|
| public Cursor findFirstOrLast(SessionLocal session, boolean first) Overrides org. Doc from org. Find the first (or last) value of this index. The cursor returned is positioned on the correct row, or on null if no row has been found.
| |
| getColumnIndex | back to summary |
|---|---|
| public int getColumnIndex(Column col) Overrides org. Doc from org. Get the index of a column in the list of index columns | |
| 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.
| |
| getMVMap | back to summary |
|---|---|
| public MVMap Implements abstract org.
| |
| getRow | back to summary |
|---|---|
| public Row getRow(SessionLocal session, long key) Overrides org. Doc from org. Get the row with the given key.
| |
| 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.
| |
| getRowFactory | back to summary |
|---|---|
| public RowFactory getRowFactory() Overrides org.
| |
| isFirstColumn | back to summary |
|---|---|
| public boolean isFirstColumn(Column column) Overrides org. Doc from org. Check if the given column is the first for this index | |
| isRowIdIndex | back to summary |
|---|---|
| public boolean isRowIdIndex() Overrides org. Doc from org. Does this index support lookup by row id?
| |
| 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.
| |
| update | back to summary |
|---|---|
| public void update(SessionLocal session, Row oldRow, Row newRow) Overrides org. Doc from org. Update index after row change.
| |