Class IcebergWriteResult

java.lang.Object
org.apache.beam.sdk.io.iceberg.IcebergWriteResult
All Implemented Interfaces:
POutput

public final class IcebergWriteResult extends Object implements POutput
The output of an IcebergIO write: the snapshots each destination table committed, plus the two diversion outputs the CDC sink can produce.

Only getSnapshots() is always present. getDeadLetterRows() (late-but-valid records) and getFailedRows() (per-record poison rows) are non-null only for results built by cdc(org.apache.beam.sdk.Pipeline, org.apache.beam.sdk.values.PCollection<org.apache.beam.sdk.values.KV<java.lang.String, org.apache.beam.sdk.io.iceberg.SnapshotInfo>>, org.apache.beam.sdk.values.PCollection<org.apache.beam.sdk.values.Row>, org.apache.beam.sdk.values.PCollection<org.apache.beam.sdk.values.Row>), that is, by IcebergIO.writeCdcRows, and getFailedRows() additionally only when error handling was enabled. The append-only sink ( IcebergIO.writeRows) leaves both null rather than exposing outputs that can never carry data.