Package io.deephaven.engine.table.impl
Class MatchPair
java.lang.Object
io.deephaven.engine.table.impl.MatchPair
- All Implemented Interfaces:
JoinAddition
,JoinMatch
,Pair
,Serializable
Holds a pair of column names.
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionfinal String
static final LogOutput.ObjFormatter<MatchPair[]>
static final LogOutput.ObjFormatter<MatchPair>
final String
static final MatchPair[]
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
The existing column name, from the right table of a join operation.static MatchPair[]
fromAddition
(Collection<? extends JoinAddition> matches) static MatchPair[]
fromMatches
(Collection<? extends JoinMatch> matches) static MatchPair[]
fromPairs
(Collection<? extends Pair> pairs) static String[]
getLeftColumns
(MatchPair... matchPairs) static String[]
getRightColumns
(MatchPair... matchPairs) int
hashCode()
input()
The input column.left()
The column from the left table.static String
matchString
(MatchPair matchPair) static String
matchString
(MatchPair[] matchPairArray) The new column name, to be added to the new table.static MatchPair
of
(JoinAddition addition) static MatchPair
static MatchPair
output()
The output column.static Stream<ColumnName>
outputs
(Collection<MatchPair> pairs) right()
The column name from the right table.toString()
-
Field Details
-
ZERO_LENGTH_MATCH_PAIR_ARRAY
-
leftColumn
-
rightColumn
-
MATCH_PAIR_ARRAY_FORMATTER
-
MATCH_PAIR_FORMATTER
-
-
Constructor Details
-
MatchPair
Inputs must be valid column names- Parameters:
leftColumn
- LHS of the pairrightColumn
- RHS of the pair
-
-
Method Details
-
of
-
of
-
of
-
fromMatches
-
fromAddition
-
fromPairs
-
outputs
-
toString
-
leftColumn
-
rightColumn
-
getLeftColumns
-
getRightColumns
-
matchString
-
matchString
-
equals
-
hashCode
public int hashCode() -
input
Description copied from interface:Pair
The input column. -
output
Description copied from interface:Pair
The output column. -
left
Description copied from interface:JoinMatch
The column from the left table. -
right
Description copied from interface:JoinMatch
The column name from the right table. -
newColumn
Description copied from interface:JoinAddition
The new column name, to be added to the new table.- Specified by:
newColumn
in interfaceJoinAddition
- Returns:
- the new column name
-
existingColumn
Description copied from interface:JoinAddition
The existing column name, from the right table of a join operation.- Specified by:
existingColumn
in interfaceJoinAddition
- Returns:
- the existing column name
-