| Modifier and Type | Field and Description |
|---|---|
| private final TableLink | |
| private long | |
| private final int | |
| private final String |
| Access | Constructor and Description |
|---|---|
| public | LinkedIndex(TableLink table, int id, IndexColumn[] columns, int uniqueColumnCount, IndexType indexType)
|
| 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. |
| private void | |
| private void | |
| 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 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 | 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. |
| private static boolean | |
| public boolean | needRebuild()
Implements abstract org. Check if the index needs to be rebuilt. |
| public void | remove(SessionLocal
the session session)Implements abstract org. Remove the index. |
| public void | remove(SessionLocal
the session session, Row the row row)Implements abstract org. Remove a row from the index. |
| public void | truncate(SessionLocal
the session session)Implements abstract org. Remove all rows from the index. |
| public void | update(Row
the old data oldRow, Row the new data newRow, SessionLocal the session session)Update a row using a UPDATE statement. |
| link | back to summary |
|---|---|
| private final TableLink link | |
| rowCount | back to summary |
|---|---|
| private long rowCount | |
| sqlFlags | back to summary |
|---|---|
| private final int sqlFlags | |
| targetTableName | back to summary |
|---|---|
| private final String targetTableName | |
| LinkedIndex | back to summary |
|---|---|
| public LinkedIndex(TableLink table, int id, IndexColumn[] columns, int uniqueColumnCount, 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.
| |
| addColumnName | back to summary |
|---|---|
| private void addColumnName(StringBuilder builder, Column col) | |
| addParameter | back to summary |
|---|---|
| private void addParameter(StringBuilder builder, Column col) | |
| 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.
| |
| 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. | |
| 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.
| |
| isNull | back to summary |
|---|---|
| private static boolean isNull(Value v) | |
| 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) Implements abstract org. Doc from org. Remove the index.
| |
| remove | back to summary |
|---|---|
| public void remove(SessionLocal session, Row row) Implements abstract org. Doc from org. Remove a row from 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(Row oldRow, Row newRow, SessionLocal session) Update a row using a UPDATE statement. This method is to be called if the emit updates option is enabled.
| |