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
Nested ClassesModifier and TypeClassDescriptionstatic interfaceCreator interface for runtime-supplied implementation.static interfaceCreator provider to supply the implementation at runtime. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic PartitionedTableConstruct aPartitionedTableas inof(Table, Collection, boolean, String, TableDefinition, boolean), inferring most parameters as follows:keyColumnNamesThe names of all columns with a non-Tabledata typeuniqueKeysfalseconstituentColumnNameThe name of the first column with aTabledata typeconstituentDefinitionTheTableDefinitionof the value at the first cell in the constituent column.static PartitionedTableof(@NotNull Table table, @NotNull Collection<String> keyColumnNames, boolean uniqueKeys, @NotNull String constituentColumnName, @NotNull TableDefinition constituentDefinition, boolean constituentChangesPermitted) Construct aPartitionedTable.static PartitionedTableConstruct aTablewith a single column containing the non-nullvalues inconstituents, and then use that to construct a PartitionedTable as inof(Table, Collection, boolean, String, TableDefinition, boolean), inferring most parameters as follows:keyColumnNamesAn empty listuniqueKeysfalseconstituentColumnNameThe single column containing non-nullvalues fromconstituentsconstituentDefinitionTheTableDefinitionof the first non-nullvalue inconstituentsconstituentChangesPermittedfalsestatic PartitionedTableofTables(@NotNull TableDefinition constituentDefinition, @NotNull Table... constituents) Construct aTablewith a single column containing the non-nullvalues inconstituents, and then use that to construct aPartitionedTableas inof(Table, Collection, boolean, String, TableDefinition, boolean), inferring most parameters as follows:keyColumnNamesAn empty listuniqueKeysfalseconstituentColumnNameThe single column containing non-nullvalues fromconstituentsconstituentChangesPermittedfalse
-
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"tableoftables. Should berefreshingif any constituents are.keyColumnNames- The "key" column names fromtable. Key columns are used intransformto validate the safety and correctness of join operations and inpartitionedTransformto 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) intableare guaranteed to be uniqueconstituentColumnName- The "constituent" column name fromtable. The constituent column contains the underlying non-nulltablesthat make up the result PartitionedTable.constituentDefinition- ATableDefinitionexpected to bemutually compatiblewith all values in the "constituent" column oftableconstituentChangesPermitted- Whethertableis permitted to report changes that impact the constituent column; ignored (and treated asfalse) if!table.isRefreshing()- Returns:
- A new PartitionedTable as described
-
of
Construct aPartitionedTableas inof(Table, Collection, boolean, String, TableDefinition, boolean), inferring most parameters as follows:keyColumnNames- The names of all columns with a non-
Tabledata type uniqueKeysfalseconstituentColumnName- The name of the first column with a
Tabledata type constituentDefinition- The
TableDefinitionof the value at the first cell in the constituent column. Consequently,tablemust be non-empty. constituentChangesPermitted- The value of
!table.isRefreshing()
-
ofTables
public static PartitionedTable ofTables(@NotNull @NotNull TableDefinition constituentDefinition, @NotNull @NotNull Table... constituents) Construct aTablewith a single column containing the non-nullvalues inconstituents, and then use that to construct aPartitionedTableas inof(Table, Collection, boolean, String, TableDefinition, boolean), inferring most parameters as follows:keyColumnNames- An empty list
uniqueKeysfalseconstituentColumnName- The single column containing non-
nullvalues fromconstituents constituentChangesPermittedfalse
- Parameters:
constituentDefinition- ATableDefinitionexpected to bemutually compatiblewith all values in the "constituent" column oftableconstituents- The constituent tables to include.nullvalues will be ignored.- Returns:
- A new PartitionedTable as described
-
ofTables
Construct aTablewith a single column containing the non-nullvalues 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
uniqueKeysfalseconstituentColumnName- The single column containing non-
nullvalues fromconstituents constituentDefinition- The
TableDefinitionof the first non-nullvalue inconstituents constituentChangesPermittedfalse
- Parameters:
constituents- The constituent tables to include.nullvalues will be ignored. At least one non-nullconstituent must be supplied.- Returns:
- A new PartitionedTable as described
-