Package org.h2.index
Class IndexSort
java.lang.Object
org.h2.index.IndexSort
- All Implemented Interfaces:
Comparable<IndexSort>
Index-sorting information.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intUsed instead of actual number of sorted columns when post-sorting isn't needed. -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
FULLY_SORTED
public static final int FULLY_SORTEDUsed instead of actual number of sorted columns when post-sorting isn't needed.- See Also:
-
-
Constructor Details
-
IndexSort
Creates an index sorting information for complete index sort.- Parameters:
index- the indexreverse- whether index must be iterated in reverse order
-
IndexSort
Creates an index sorting information for index sort.- Parameters:
index- the indexsortedColumns- a positive number of sorted columns for partial index sorts, orFULLY_SORTEDfor complete index sortsreverse- whether index must be iterated in reverse order
-
-
Method Details
-
getIndex
Returns the index.- Returns:
- the index
-
getSortedColumns
public int getSortedColumns()Returns number of sorted columns.- Returns:
- positive number of sorted columns for partial index sorts, or
FULLY_SORTEDfor complete index sorts
-
isReverse
public boolean isReverse()Returns whether index must be iterated in reverse order.- Returns:
truefor reverse order,falsefor natural order
-
compareTo
- Specified by:
compareToin interfaceComparable<IndexSort>
-