Partitioned table transform

transform applies a unary operator to all constituents of a partitioned table.

Syntax

Parameters

ParameterTypeDescription
transformerUnaryOperator<Table>

An operation on a table that returns a table.

executionContextExecutionContext

The ExecutionContext to use for the transformation.

expectRefreshingResultsboolean

Whether to expect refreshing results from the transformation. If true, the resulting partitioned table will always be backed by a refreshing table. This is important for transforms applied to static inputs that may produce refreshing output, because it ensures correct liveness management. Incorrectly specifying false will result in exceptions.

Returns

A PartitionedTable.

Examples

This first example applies a transformation to add a new column to each constituent of a partitioned table.

This second example applies aggregations to each constituent of a partitioned table via transform. It specifies the execution context in the transform call, so no it is not needed in the closure. Additionally, refreshing results are not expected, so false is passed as the third argument.