public final class SortedJoinKey extends Object
Constructor and Description |
---|
SortedJoinKey(JoinKey key,
TokenOrder ordering)
Create a key using the specified order.
|
SortedJoinKey(String name)
Create a key using ascending order, where the left name and right name
are the same.
|
SortedJoinKey(String name,
TokenOrder ordering)
Create a key using the specified order, where the left name and right name
are the same.
|
Modifier and Type | Method and Description |
---|---|
static SortedJoinKey[] |
asc(JoinKey... keys)
Create multiple ascending keys.
|
static SortedJoinKey[] |
asc(String... names)
Create multiple ascending keys.
|
static SortedJoinKey |
asc(String name)
Create an ascending key.
|
static SortedJoinKey[] |
desc(JoinKey... names)
Create multiple descending keys.
|
static SortedJoinKey[] |
desc(String... names)
Create multiple descending keys.
|
static SortedJoinKey |
desc(String name)
Create a descending key.
|
JoinKey |
getKey()
Get the left field name associated with this key.
|
static JoinKey[] |
getKeys(SortedJoinKey... joinKeys)
Extract the join keys from several keys.
|
static SortKey[] |
getLeftKeys(SortedJoinKey... joinKeys)
Extract the left sort keys from several sorted join keys
|
TokenOrder |
getOrder()
Get the ordering associated with this key.
|
static TokenOrder[] |
getOrders(SortedJoinKey... joinKeys)
Extract the orderings from several keys.
|
static SortKey[] |
getRightKeys(SortedJoinKey... joinKeys)
Extract the right sort keys from several sorted join keys
|
static SortedJoinKey[] |
makeJoinKeys(TokenOrder[] order,
JoinKey[] names)
Create multiple keys using the specified order.
|
static SortedJoinKey[] |
makeJoinKeys(TokenOrder order,
JoinKey... names)
Create multiple keys using the specified order.
|
String |
toString()
Pretty-print this
JoinKey . |
public SortedJoinKey(String name)
name
- Name of the key field on both the left and rightpublic SortedJoinKey(String name, TokenOrder ordering)
name
- Name of the key on both the left and rightordering
- Order of the datapublic SortedJoinKey(JoinKey key, TokenOrder ordering)
key
- the key containing the left and right nameordering
- Order of the datapublic JoinKey getKey()
public TokenOrder getOrder()
public String toString()
JoinKey
.public static SortedJoinKey asc(String name)
name
- Name of the key fieldpublic static SortedJoinKey[] asc(String... names)
names
- Names of the key fields on both left and rightpublic static SortedJoinKey[] asc(JoinKey... keys)
keys
- Join keyspublic static SortedJoinKey desc(String name)
name
- Name of the key fieldpublic static SortedJoinKey[] desc(String... names)
names
- Names of the key fields on both left and rightpublic static SortedJoinKey[] desc(JoinKey... names)
names
- Names of the key fieldspublic static SortedJoinKey[] makeJoinKeys(TokenOrder order, JoinKey... names)
order
- Ordering to use for the keysnames
- Names of the key fieldspublic static SortedJoinKey[] makeJoinKeys(TokenOrder[] order, JoinKey[] names)
order
- Ordering to use for the keysnames
- Names of the key fieldspublic static JoinKey[] getKeys(SortedJoinKey... joinKeys)
joinKeys
- Keys from which to get the field namespublic static SortKey[] getLeftKeys(SortedJoinKey... joinKeys)
joinKeys
- the join keys specifying a sort orderpublic static SortKey[] getRightKeys(SortedJoinKey... joinKeys)
joinKeys
- the join keys specifying a sort orderpublic static TokenOrder[] getOrders(SortedJoinKey... joinKeys)
joinKeys
- Keys from which to get the orderingsCopyright © 2024 Actian Corporation. All rights reserved.