Store intermediate writes linked to a checkpoint.
taskPath is the serialized path of the task creating the writes (see
writesSortKey). Implementations should persist it when they can, and
must return pendingWrites from getTuple/list in writesSortKey
order — live execution applies a superstep's writes in that order, so
replaying in any other order can rebuild a different value for an
order-sensitive reducer. Writes stored without a path (rows predating it,
savers that don't persist one) sort first by taskId, which is also the
order live execution applies input in.
putWrites(
config: RunnableConfig,
writes: PendingWrite[],
taskId: string,
taskPath: string
): Promise<void>| Name | Type | Description |
|---|---|---|
config* | RunnableConfig | |
writes* | PendingWrite[] | |
taskId* | string | |
taskPath | string |