Class BeamTableStatistics

java.lang.Object
org.apache.beam.sdk.extensions.sql.impl.BeamTableStatistics
All Implemented Interfaces:
Serializable, org.apache.beam.vendor.calcite.v1_28_0.org.apache.calcite.schema.Statistic

@Internal public class BeamTableStatistics extends Object implements Serializable, org.apache.beam.vendor.calcite.v1_28_0.org.apache.calcite.schema.Statistic
This class stores row count statistics.
See Also:
  • Field Details

  • Method Details

    • createBoundedTableStatistics

      public static BeamTableStatistics createBoundedTableStatistics(Double rowCount)
    • createUnboundedTableStatistics

      public static BeamTableStatistics createUnboundedTableStatistics(Double rate)
    • getRate

      public Double getRate()
    • isUnknown

      public boolean isUnknown()
    • getRowCount

      public Double getRowCount()
      Specified by:
      getRowCount in interface org.apache.beam.vendor.calcite.v1_28_0.org.apache.calcite.schema.Statistic
    • isKey

      public boolean isKey(org.apache.beam.vendor.calcite.v1_28_0.org.apache.calcite.util.ImmutableBitSet columns)
      Specified by:
      isKey in interface org.apache.beam.vendor.calcite.v1_28_0.org.apache.calcite.schema.Statistic
    • getKeys

      public List<org.apache.beam.vendor.calcite.v1_28_0.org.apache.calcite.util.ImmutableBitSet> getKeys()
      Specified by:
      getKeys in interface org.apache.beam.vendor.calcite.v1_28_0.org.apache.calcite.schema.Statistic
    • getReferentialConstraints

      public List<org.apache.beam.vendor.calcite.v1_28_0.org.apache.calcite.rel.RelReferentialConstraint> getReferentialConstraints()
      Specified by:
      getReferentialConstraints in interface org.apache.beam.vendor.calcite.v1_28_0.org.apache.calcite.schema.Statistic
    • getCollations

      public List<org.apache.beam.vendor.calcite.v1_28_0.org.apache.calcite.rel.RelCollation> getCollations()
      Specified by:
      getCollations in interface org.apache.beam.vendor.calcite.v1_28_0.org.apache.calcite.schema.Statistic
    • getDistribution

      public org.apache.beam.vendor.calcite.v1_28_0.org.apache.calcite.rel.RelDistribution getDistribution()
      Specified by:
      getDistribution in interface org.apache.beam.vendor.calcite.v1_28_0.org.apache.calcite.schema.Statistic