java.lang.Object
com.pervasive.datarush.tokens.record.JoinKey
Combination of a left key and a right key.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the left field name associated with this key.static String[]getLeftNames(JoinKey... joinKeys) Extract the left field names from several keys.Get the right field name associated with this key.static String[]getRightNames(JoinKey... joinKeys) Extract the right field names from several keys.static JoinKey[]Create multiple keys.static JoinKey[]makeJoinKeys(String[] leftKeyNames, String[] rightKeyNames) Create multiple keys.toString()Pretty-print thisJoinKey.
-
Constructor Details
-
JoinKey
Create a key where the left name and right name are the same.- Parameters:
name- Name of the key field on both the left and right
-
JoinKey
Create a key using the specified left and right name- Parameters:
leftName- Name of the key on the leftrightName- Name of the key on the right
-
-
Method Details
-
getLeftName
Get the left field name associated with this key.- Returns:
- Name of the key field
-
getRightName
Get the right field name associated with this key.- Returns:
- Name of the key field
-
toString
Pretty-print thisJoinKey. -
keys
Create multiple keys.- Parameters:
names- names of the keys on the left and right- Returns:
- Join keys, in the same order as the supplied field names
-
makeJoinKeys
Create multiple keys.- Parameters:
leftKeyNames- names of the keys on the leftrightKeyNames- names of the keys on the right- Returns:
- Join keys, in the same order as the supplied field names
-
getLeftNames
Extract the left field names from several keys.- Parameters:
joinKeys- Keys from which to get the field names- Returns:
- Field names for the keys, in the same order as the supplied keys
-
getRightNames
Extract the right field names from several keys.- Parameters:
joinKeys- Keys from which to get the field names- Returns:
- Field names for the keys, in the same order as the supplied keys
-