Package io.deephaven.engine.table
Class MatchPair
java.lang.Object
io.deephaven.engine.table.MatchPair
- All Implemented Interfaces:
Pair
,JoinAddition
,JoinMatch
,Serializable
public class MatchPair extends Object implements Pair, JoinMatch, JoinAddition, Serializable
Holds a pair of column names.
- See Also:
- Serialized Form
-
Field Summary
Fields Modifier and Type Field Description String
leftColumn
static LogOutput.ObjFormatter<MatchPair[]>
MATCH_PAIR_ARRAY_FORMATTER
static LogOutput.ObjFormatter<MatchPair>
MATCH_PAIR_FORMATTER
String
rightColumn
static MatchPair[]
ZERO_LENGTH_MATCH_PAIR_ARRAY
-
Constructor Summary
-
Method Summary
Modifier and Type Method Description boolean
equals(Object o)
ColumnName
existingColumn()
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()
ColumnName
input()
The input column.ColumnName
left()
The column from the left table.String
leftColumn()
static String
matchString(MatchPair matchPair)
static String
matchString(MatchPair[] matchPairArray)
ColumnName
newColumn()
The new column name, to be added to the new table.static MatchPair
of(Pair pair)
static MatchPair
of(JoinAddition addition)
static MatchPair
of(JoinMatch match)
ColumnName
output()
The output column.static Stream<ColumnName>
outputs(Collection<MatchPair> pairs)
ColumnName
right()
The column name from the right table.String
rightColumn()
String
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
-