Class ReadUtils

java.lang.Object
org.apache.beam.sdk.io.iceberg.ReadUtils

public class ReadUtils extends Object
Helper class for source operations.
  • Constructor Details

    • ReadUtils

      public ReadUtils()
  • Method Details

    • createReader

      public static org.apache.iceberg.io.CloseableIterable<org.apache.iceberg.data.Record> createReader(org.apache.iceberg.ContentScanTask<?> task, org.apache.iceberg.Table table, IcebergScanConfig scanConfig)
    • createReader

      public static org.apache.iceberg.io.CloseableIterable<org.apache.iceberg.data.Record> createReader(org.apache.iceberg.Table table, IcebergScanConfig scanConfig, org.apache.iceberg.Schema requiredSchema, org.apache.iceberg.PartitionSpec spec, org.apache.iceberg.ContentFile<?> file, @Nullable Long fileSequenceNumber, long start, long length, org.apache.iceberg.expressions.Expression residual)
    • getFromSnapshotInclusive

      public static @Nullable Long getFromSnapshotInclusive(org.apache.iceberg.Table table, IcebergScanConfig scanConfig)
    • getFromSnapshotExclusive

      public static @Nullable Long getFromSnapshotExclusive(org.apache.iceberg.Table table, IcebergScanConfig scanConfig)
    • getToSnapshot

      public static @Nullable Long getToSnapshot(org.apache.iceberg.Table table, IcebergScanConfig scanConfig)
    • snapshotsBetween

      public static List<SnapshotInfo> snapshotsBetween(org.apache.iceberg.Table table, String tableIdentifier, @Nullable Long fromSnapshotId, long toSnapshotId)
      Returns a list of snapshots in the range (fromSnapshotId, toSnapshotId], ordered chronologically.
    • maybeApplyFilter

      public static org.apache.iceberg.io.CloseableIterable<org.apache.iceberg.data.Record> maybeApplyFilter(org.apache.iceberg.io.CloseableIterable<org.apache.iceberg.data.Record> iterable, IcebergScanConfig scanConfig)
    • maybeApplyFilter

      public static org.apache.iceberg.io.CloseableIterable<org.apache.iceberg.data.Record> maybeApplyFilter(org.apache.iceberg.io.CloseableIterable<org.apache.iceberg.data.Record> iterable, IcebergScanConfig scanConfig, org.apache.iceberg.Schema requiredSchema)