public final class JoinKey extends Object
Constructor and Description |
---|
JoinKey(String name)
Create a key where the left name and right name are the same.
|
JoinKey(String leftName,
String rightName)
Create a key using the specified left and right name
|
Modifier and Type | Method and Description |
---|---|
String |
getLeftName()
Get the left field name associated with this key.
|
static String[] |
getLeftNames(JoinKey... joinKeys)
Extract the left field names from several keys.
|
String |
getRightName()
Get the right field name associated with this key.
|
static String[] |
getRightNames(JoinKey... joinKeys)
Extract the right field names from several keys.
|
static JoinKey[] |
keys(String... names)
Create multiple keys.
|
static JoinKey[] |
makeJoinKeys(String[] leftKeyNames,
String[] rightKeyNames)
Create multiple keys.
|
String |
toString()
Pretty-print this
JoinKey . |
public JoinKey(String name)
name
- Name of the key field on both the left and rightpublic String getLeftName()
public String getRightName()
public String toString()
JoinKey
.public static JoinKey[] keys(String... names)
names
- names of the keys on the left and rightpublic static JoinKey[] makeJoinKeys(String[] leftKeyNames, String[] rightKeyNames)
leftKeyNames
- names of the keys on the leftrightKeyNames
- names of the keys on the rightpublic static String[] getLeftNames(JoinKey... joinKeys)
joinKeys
- Keys from which to get the field namesCopyright © 2016 Actian Corporation. All rights reserved.