Package com.illumon.iris.db.v2.utils
Class ZipTables.Builder
java.lang.Object
com.illumon.iris.db.v2.utils.ZipTables.Builder
- Enclosing class:
- ZipTables
A Builder to zip the columns of two tables together.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionAdd a table to be zipped together.Add a table to be zipped together.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.
-