Package com.illumon.iris.db.v2.join
Class MultiJoin.JoinDescriptor
java.lang.Object
com.illumon.iris.db.v2.join.MultiJoin.JoinDescriptor
- Enclosing class:
- MultiJoin
A descriptor of an input to a multiJoin.
The table, key columns, and columns to add are encapsulated in the join descriptor.
-
Constructor Summary
ConstructorsConstructorDescriptionJoinDescriptor
(Table inputTable, MatchPair[] columnsToMatch, MatchPair[] columnsToAdd) Create a join descriptor.JoinDescriptor
(Table inputTable, String... columnsToMatch) Create a join descriptor.JoinDescriptor
(Table inputTable, String[] columnsToMatch, String[] columnsToAdd) Create a join descriptor.JoinDescriptor
(Table inputTable, Collection<String> columnsToMatch, Collection<String> columnsToAdd) Create a join descriptor. -
Method Summary
-
Constructor Details
-
JoinDescriptor
public JoinDescriptor(@NotNull Table inputTable, @NotNull MatchPair[] columnsToMatch, @NotNull MatchPair[] columnsToAdd) Create a join descriptor.- Parameters:
inputTable
- the table to include in a multiJoincolumnsToMatch
- the key columns, in MatchPair format (e.g. "ResultKey=SourceKey" or "KeyInBoth").columnsToAdd
- the columns to add, in MatchPair format (e.g. "ResultColumn=SourceColumn" or "ColumnInBoth"), empty for all columns
-
JoinDescriptor
public JoinDescriptor(@NotNull Table inputTable, @NotNull String[] columnsToMatch, @NotNull String[] columnsToAdd) Create a join descriptor.- Parameters:
inputTable
- the table to include in a multiJoincolumnsToMatch
- the key columns, in MatchPair format (e.g. "ResultKey=SourceKey" or "KeyInBoth").columnsToAdd
- the columns to add, in MatchPair format (e.g. "ResultColumn=SourceColumn" or "ColumnInBoth"), empty for all columns
-
JoinDescriptor
Create a join descriptor. Key columns are renamed according to the MatchPair format. All other columns are included in the result without renames.- Parameters:
inputTable
- the table to include in a multiJoincolumnsToMatch
- the key columns, in MatchPair format (e.g. "ResultKey=SourceKey" or "KeyInBoth").
-
JoinDescriptor
public JoinDescriptor(@NotNull Table inputTable, @NotNull Collection<String> columnsToMatch, @NotNull Collection<String> columnsToAdd) Create a join descriptor.- Parameters:
inputTable
- the table to include in a multiJoincolumnsToMatch
- the key columns, in MatchPair format (e.g. "ResultKey=SourceKey" or "KeyInBoth").columnsToAdd
- the columns to add, in MatchPair format (e.g. "ResultColumn=SourceColumn" or "ColumnInBoth"), empty for all columns
-