transform
The transform method applies the supplied transformer to all constituent tables and produces a new PartitionedTable containing the results.
Note
If no ExecutionContext is provided, the transformer will be executed in the enclosing ExecutionContext. In this case, the method will expect the transformer to produce refreshing results if and only if this PartitionedTable's underlying table is refreshing.
Syntax
Parameters
| Parameter | Type | Description |
|---|---|---|
| transformer | BinaryOperator<Table> | The |
| dependencies | NotificationQueue.Dependency... | Additional dependencies that must be satisfied before applying |
| executionContext | ExecutionContext | The |
| expectRefreshingResults | boolean | Whether to expect the results of applying |
Returns
A new PartitionedTable containing the results of applying transformer to all constituent tables.
Examples
In this example, we create a table with five rows and two columns, IntCol and StrCol. We then partition the table by IntCol and apply a transformation that adds one to the IntCol values, renaming the resulting column to IntCol2. Finally, we retrieve the third constituent table.
In this example, we create a table with 100 rows and three columns, Sym, X, and Y. We then partition the table by Sym and apply aggregations to the partitioned table. Finally, we retrieve the constituent table for symbol A.