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
FieldsModifier and TypeFieldDescriptionfinal Stringstatic final LogOutput.ObjFormatter<MatchPair[]>static final LogOutput.ObjFormatter<MatchPair>final Stringstatic final MatchPair[] -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanThe 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) inthashCode()input()The input column.left()The column from the left table.static StringmatchString(MatchPair matchPair) static StringmatchString(MatchPair[] matchPairArray) The new column name, to be added to the new table.static MatchPairof(JoinAddition addition) static MatchPairstatic MatchPairoutput()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:PairThe input column. -
output
Description copied from interface:PairThe output column. -
left
Description copied from interface:JoinMatchThe column from the left table. -
right
Description copied from interface:JoinMatchThe column name from the right table. -
newColumn
Description copied from interface:JoinAdditionThe new column name, to be added to the new table.- Specified by:
newColumnin interfaceJoinAddition- Returns:
- the new column name
-
existingColumn
Description copied from interface:JoinAdditionThe existing column name, from the right table of a join operation.- Specified by:
existingColumnin interfaceJoinAddition- Returns:
- the existing column name
-