Package io.deephaven.engine.table
Class PartitionedTableFactory
java.lang.Object
io.deephaven.engine.table.PartitionedTableFactory
Factory for producing Deephaven engine
PartitionedTable
instances.-
Nested Class Summary
Modifier and TypeClassDescriptionstatic interface
Creator interface for runtime-supplied implementation.static interface
Creator provider to supply the implementation at runtime. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic PartitionedTable
Construct aPartitionedTable
as inof(Table, Collection, boolean, String, TableDefinition, boolean)
, inferring most parameters as follows:keyColumnNames
The names of all columns with a non-Table
data typeuniqueKeys
false
constituentColumnName
The name of the first column with aTable
data typeconstituentDefinition
TheTableDefinition
of the value at the first cell in the constituent column.static PartitionedTable
of
(@NotNull Table table, @NotNull Collection<String> keyColumnNames, boolean uniqueKeys, @NotNull String constituentColumnName, @NotNull TableDefinition constituentDefinition, boolean constituentChangesPermitted) Construct aPartitionedTable
.static PartitionedTable
Construct aTable
with a single column containing the non-null
values inconstituents
, and then use that to construct a PartitionedTable as inof(Table, Collection, boolean, String, TableDefinition, boolean)
, inferring most parameters as follows:keyColumnNames
An empty listuniqueKeys
false
constituentColumnName
The single column containing non-null
values fromconstituents
constituentDefinition
TheTableDefinition
of the first non-null
value inconstituents
constituentChangesPermitted
false
static PartitionedTable
ofTables
(@NotNull TableDefinition constituentDefinition, @NotNull Table... constituents) Construct aTable
with a single column containing the non-null
values inconstituents
, and then use that to construct aPartitionedTable
as inof(Table, Collection, boolean, String, TableDefinition, boolean)
, inferring most parameters as follows:keyColumnNames
An empty listuniqueKeys
false
constituentColumnName
The single column containing non-null
values fromconstituents
constituentChangesPermitted
false
-
Constructor Details
-
PartitionedTableFactory
public PartitionedTableFactory()
-
-
Method Details
-
of
public static PartitionedTable of(@NotNull @NotNull Table table, @NotNull @NotNull Collection<String> keyColumnNames, boolean uniqueKeys, @NotNull @NotNull String constituentColumnName, @NotNull @NotNull TableDefinition constituentDefinition, boolean constituentChangesPermitted) Construct aPartitionedTable
.- Parameters:
table
- The "raw"table
oftables
. Should berefreshing
if any constituents are.keyColumnNames
- The "key" column names fromtable
. Key columns are used intransform
to validate the safety and correctness of join operations and inpartitionedTransform
to correlate tables that should be transformed together. Passing an ordered set is highly recommended.uniqueKeys
- Whether the keys (key column values for a row considered as a tuple) intable
are guaranteed to be uniqueconstituentColumnName
- The "constituent" column name fromtable
. The constituent column contains the underlying non-null
tables
that make up the result PartitionedTable.constituentDefinition
- ATableDefinition
expected to bemutually compatible
with all values in the "constituent" column oftable
constituentChangesPermitted
- Whethertable
is permitted to report changes that impact the constituent column; ignored (and treated asfalse
) if!table.isRefreshing()
- Returns:
- A new PartitionedTable as described
-
of
Construct aPartitionedTable
as inof(Table, Collection, boolean, String, TableDefinition, boolean)
, inferring most parameters as follows:keyColumnNames
- The names of all columns with a non-
Table
data type uniqueKeys
false
constituentColumnName
- The name of the first column with a
Table
data type constituentDefinition
- The
TableDefinition
of the value at the first cell in the constituent column. Consequently,table
must be non-empty. constituentChangesPermitted
- The value of
!table.isRefreshing()
-
ofTables
public static PartitionedTable ofTables(@NotNull @NotNull TableDefinition constituentDefinition, @NotNull @NotNull Table... constituents) Construct aTable
with a single column containing the non-null
values inconstituents
, and then use that to construct aPartitionedTable
as inof(Table, Collection, boolean, String, TableDefinition, boolean)
, inferring most parameters as follows:keyColumnNames
- An empty list
uniqueKeys
false
constituentColumnName
- The single column containing non-
null
values fromconstituents
constituentChangesPermitted
false
- Parameters:
constituentDefinition
- ATableDefinition
expected to bemutually compatible
with all values in the "constituent" column oftable
constituents
- The constituent tables to include.null
values will be ignored.- Returns:
- A new PartitionedTable as described
-
ofTables
Construct aTable
with a single column containing the non-null
values inconstituents
, and then use that to construct a PartitionedTable as inof(Table, Collection, boolean, String, TableDefinition, boolean)
, inferring most parameters as follows:keyColumnNames
- An empty list
uniqueKeys
false
constituentColumnName
- The single column containing non-
null
values fromconstituents
constituentDefinition
- The
TableDefinition
of the first non-null
value inconstituents
constituentChangesPermitted
false
- Parameters:
constituents
- The constituent tables to include.null
values will be ignored. At least one non-null
constituent must be supplied.- Returns:
- A new PartitionedTable as described
-