| Modifier and Type | Field and Description |
|---|---|
| public static final int | FULLY_SORTED
Used instead of actual number of sorted columns when post-sorting isn't needed. |
| private final Index | |
| private final boolean | reverse
Whether index must be iterated in reverse order. |
| private final int | sortedColumns
A positive number of sorted columns for partial index sorts, or
|
| Access | Constructor and Description |
|---|---|
| public | |
| public | IndexSort(Index
the index index, int a positive number of sorted columns for partial index sorts,
or sortedColumns, boolean FULLY_SORTED for complete index sortswhether index must be iterated in reverse order reverse)Creates an index sorting information for index sort. |
| Modifier and Type | Method and Description |
|---|---|
| public int | compareTo(IndexSort
the object to be compared. o)Implements java. Compares this object with the specified object for order. |
| public Index | |
| public int | Returns: positive number of sorted columns for partial index sorts, orFULLY_SORTED for complete index sortsReturns number of sorted columns. |
| public boolean | Returns: true for reverse order, false for natural orderReturns whether index must be iterated in reverse order. |
| FULLY_SORTED | back to summary |
|---|---|
| public static final int FULLY_SORTED Used instead of actual number of sorted columns when post-sorting isn't needed. | |
| index | back to summary |
|---|---|
| private final Index index | |
| reverse | back to summary |
|---|---|
| private final boolean reverse Whether index must be iterated in reverse order. | |
| sortedColumns | back to summary |
|---|---|
| private final int sortedColumns A positive number of sorted columns for partial index sorts, or
| |
| IndexSort | back to summary |
|---|---|
| public IndexSort(Index index, boolean reverse) Creates an index sorting information for complete index sort.
| |
| IndexSort | back to summary |
|---|---|
| public IndexSort(Index index, int sortedColumns, boolean reverse) Creates an index sorting information for index sort.
| |
| compareTo | back to summary |
|---|---|
| public int compareTo(IndexSort o) Implements java. Doc from java. Compares this object with the specified object for order. Returns a negative integer, zero, or a positive integer as this object is less than, equal to, or greater than the specified object. The implementor must ensure The implementor must also ensure that the relation is transitive:
Finally, the implementor must ensure that | |
| getIndex | back to summary |
|---|---|
| public Index getIndex() Returns the index.
| |
| getSortedColumns | back to summary |
|---|---|
| public int getSortedColumns() Returns number of sorted columns.
| |
| isReverse | back to summary |
|---|---|
| public boolean isReverse() Returns whether index must be iterated in reverse order.
| |