| Modifier and Type | Field and Description |
|---|---|
| private final MetaTable | |
| private final boolean |
| 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 | |
| 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 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 String | |
| public long | getDiskSpaceUsed(boolean
true to return quick approximationOverrides org. Get the used disk space for this index. |
| public String | getPlanSQL()
Overrides org. Get the message to show in a EXPLAIN statement. |
| 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 boolean | isFirstColumn(Column
the column column)Overrides org. Check if the given column is the first for this index |
| 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. |
| meta | back to summary |
|---|---|
| private final MetaTable meta | |
| scan | back to summary |
|---|---|
| private final boolean scan | |
| MetaIndex | back to summary |
|---|---|
| public MetaIndex(MetaTable meta, IndexColumn[] columns, boolean scan) | |
| add | back to summary |
|---|---|
| public void add(SessionLocal session, Row row) Implements abstract org. Doc from org. Add a row to the index.
| |
| checkRename | back to summary |
|---|---|
| public void checkRename() Overrides org. Doc from org. Check if renaming is allowed. Does nothing when allowed.
| |
| 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.
| |
| 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.
| |
| getCreateSQL | back to summary |
|---|---|
| public String getCreateSQL() Overrides org. Doc from org. Construct the CREATE ... SQL statement for this object. | |
| getDiskSpaceUsed | back to summary |
|---|---|
| public long getDiskSpaceUsed(boolean approximate) Overrides org. Doc from org. Get the used disk space for this index.
| |
| getPlanSQL | back to summary |
|---|---|
| public String getPlanSQL() Overrides org. Doc from org. Get the message to show in a EXPLAIN statement. | |
| 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.
| |
| 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 | |
| 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.
| |