| Modifier and Type | Field and Description |
|---|---|
| private final RangeTable |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | canGetFirstOrLast()
Overrides org. Check if the index can directly look up the lowest or highest value of a column. |
| 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 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 String | getPlanSQL()
Overrides org. Get the message to show in a EXPLAIN statement. |
| rangeTable | back to summary |
|---|---|
| private final RangeTable rangeTable | |
| RangeIndex | back to summary |
|---|---|
| public RangeIndex(RangeTable table, IndexColumn[] columns) | |
| 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.
| |
| 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.
| |
| 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. | |
| getPlanSQL | back to summary |
|---|---|
| public String getPlanSQL() Overrides org. Doc from org. Get the message to show in a EXPLAIN statement. | |