Class IcebergIO.ReadRows
- All Implemented Interfaces:
Serializable,HasDisplayData
- Enclosing class:
IcebergIO
- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
Fields inherited from class org.apache.beam.sdk.transforms.PTransform
annotations, displayData, name, resourceHints -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionOverride this method to specify how thisPTransformshould be expanded on the givenInputT.from(org.apache.iceberg.catalog.TableIdentifier tableIdentifier) fromSnapshot(@Nullable Long fromSnapshot) fromTimestamp(@Nullable Long fromTimestamp) toSnapshot(@Nullable Long toSnapshot) toTimestamp(@Nullable Long toTimestamp) withCdc()withFilter(@Nullable String filter) withMetadataColumns(@Nullable List<String> metadataColumns) Appends top-level metadata columns to CDC output rows.withPollInterval(Duration pollInterval) withWatermarkColumn(@Nullable String watermarkColumn) withWatermarkColumnTimeUnit(@Nullable String timeUnit) Methods inherited from class org.apache.beam.sdk.transforms.PTransform
addAnnotation, compose, compose, getAdditionalInputs, getAnnotations, getDefaultOutputCoder, getDefaultOutputCoder, getDefaultOutputCoder, getKindString, getName, getResourceHints, populateDisplayData, setDisplayData, setResourceHints, toString, validate, validate
-
Constructor Details
-
ReadRows
public ReadRows()
-
-
Method Details
-
withCdc
-
from
-
fromSnapshot
-
toSnapshot
-
fromTimestamp
-
toTimestamp
-
withPollInterval
-
streaming
-
withStartingStrategy
public IcebergIO.ReadRows withStartingStrategy(@Nullable IcebergIO.ReadRows.StartingStrategy strategy) -
keeping
-
dropping
-
withFilter
-
withWatermarkColumn
-
withWatermarkColumnTimeUnit
-
withMetadataColumns
Appends top-level metadata columns to CDC output rows.Supported values are
_change_type,_commit_snapshot_id,_commit_snapshot_sequence_number,_row_id, and_last_updated_sequence_number. The row metadata columns are read from Iceberg data files and require a row-lineage table. The changelog metadata columns come from the emitted change kind and snapshot context and are appended when final Beam rows are emitted.This option is only valid
withCdc(). -
expand
Description copied from class:PTransformOverride this method to specify how thisPTransformshould be expanded on the givenInputT.NOTE: This method should not be called directly. Instead apply the
PTransformshould be applied to theInputTusing theapplymethod.Composite transforms, which are defined in terms of other transforms, should return the output of one of the composed transforms. Non-composite transforms, which do not apply any transforms internally, should return a new unbound output and register evaluators (via backend-specific registration methods).
- Specified by:
expandin classPTransform<PBegin,PCollection<Row>>
-