Package io.deephaven.engine.table.impl
Class SortPair
java.lang.Object
io.deephaven.engine.table.impl.SortPair
A pair representing a column to sort by and its direction.
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic SortPair
Create an ascending SortPair for name.static SortPair[]
ascendingPairs
(String... names) Create an array of ascending SortPair for names.static SortPair
descending
(String name) Create an descending SortPair for name.static SortPair[]
descendingPairs
(String... names) Create an array of descending SortPair for names.boolean
static SortPair[]
from
(Collection<SortColumn> sortColumns) getOrder()
int
hashCode()
static SortPair
of
(SortColumn sortColumn) toString()
-
Field Details
-
ZERO_LENGTH_SORT_PAIR_ARRAY
-
-
Method Details
-
from
-
of
-
ascending
Create an ascending SortPair for name.- Parameters:
name
- the column name to sort by- Returns:
- an ascending SortPair for name
-
ascendingPairs
Create an array of ascending SortPair for names.- Parameters:
names
- the column names to sort by- Returns:
- an ascending SortPair array for names
-
descending
Create an descending SortPair for name.- Parameters:
name
- the column name to sort by- Returns:
- an descending SortPair for name
-
descendingPairs
Create an array of descending SortPair for names.- Parameters:
names
- the column names to sort by- Returns:
- an descending SortPair array for names
-
getColumn
- Returns:
- the column name for this SortPair.
-
getOrder
- Returns:
- the SortingOrder for this pair.
-
equals
-
hashCode
public int hashCode() -
toString
-