Class MultiJoin.JoinDescriptor

java.lang.Object
com.illumon.iris.db.v2.join.MultiJoin.JoinDescriptor
Enclosing class:
MultiJoin

public static class MultiJoin.JoinDescriptor
extends Object
A descriptor of an input to a multiJoin. The table, key columns, and columns to add are encapsulated in the join descriptor.
  • 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 multiJoin
      columnsToMatch - 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 multiJoin
      columnsToMatch - 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)
      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 multiJoin
      columnsToMatch - 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 multiJoin
      columnsToMatch - 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