Interface PartitionStatisticsScan

All Known Implementing Classes:
BasePartitionStatisticsScan

public interface PartitionStatisticsScan
API for configuring partition statistics scan.
  • Method Details

    • useSnapshot

      PartitionStatisticsScan useSnapshot(long snapshotId)
      Create a new scan from this scan's configuration that will use the given snapshot by ID.
      Parameters:
      snapshotId - a snapshot ID
      Returns:
      a new scan based on this with the given snapshot ID
      Throws:
      IllegalArgumentException - if the snapshot cannot be found
    • filter

      Create a new scan from the results of this, where partitions are filtered by the Expression.
      Parameters:
      filter - a filter expression
      Returns:
      a new scan based on this with results filtered by the expression
    • caseSensitive

      default PartitionStatisticsScan caseSensitive(boolean caseSensitive)
      Create a new scan from this that will configure whether column name matches in filter expressions are case-sensitive. Default is true.
      Parameters:
      caseSensitive - whether column name matches in filter expressions should be case-sensitive
      Returns:
      a new scan based on this with the given case sensitivity
    • project

      Create a new scan from this with the schema as its projection.
      Parameters:
      schema - a projection schema
      Returns:
      a new scan based on this with the given projection
    • scan

      Scans a partition statistics file belonging to a particular snapshot
      Returns:
      an Iterable of partition statistics