Package com.illumon.iris.db.v2.utils
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 Summary
Constructors Constructor Description Builder()
-
Method Summary
Modifier and Type Method Description ZipTables.Builder
add(Table table, MatchPair[] columnsToZip)
Add a table to be zipped together.ZipTables.Builder
add(Table table, String... columnsToZip)
Add a table to be zipped together.Table
build()
Zip the tables and columns into a single table.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
add
Add a table to be zipped together.- Parameters:
table
- the table to zipcolumnsToZip
- the columns to zip into the result- Returns:
- this builder
-
add
Add a table to be zipped together.- Parameters:
table
- the table to zipcolumnsToZip
- the columns to zip into the result- Returns:
- this builder
-
build
Zip the tables and columns into a single table.- Returns:
- a new table with the requested columns from each sub table zipped together.
-