Class ZipTables.Builder

java.lang.Object
com.illumon.iris.db.v2.utils.ZipTables.Builder
Enclosing class:
ZipTables

public static final class ZipTables.Builder
extends Object
A Builder to zip the columns of two tables together.
  • Constructor Details

  • Method Details

    • add

      @NotNull public ZipTables.Builder add​(@NotNull Table table, String... columnsToZip)
      Add a table to be zipped together.
      Parameters:
      table - the table to zip
      columnsToZip - the columns to zip into the result
      Returns:
      this builder
    • add

      public ZipTables.Builder add​(@NotNull Table table, MatchPair[] columnsToZip)
      Add a table to be zipped together.
      Parameters:
      table - the table to zip
      columnsToZip - the columns to zip into the result
      Returns:
      this builder
    • build

      public Table build()
      Zip the tables and columns into a single table.
      Returns:
      a new table with the requested columns from each sub table zipped together.