Class Statistics


  • public class Statistics
    extends java.lang.Object
    Utility functions regarding Statistic.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static Statistic UNKNOWN
      Returns a Statistic that knows nothing about a table.
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private Statistics()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static Statistic of​(double rowCount, java.util.List<ImmutableBitSet> keys)
      Returns a statistic with a given row count and set of unique keys.
      static Statistic of​(double rowCount, java.util.List<ImmutableBitSet> keys, java.util.List<RelCollation> collations)
      Returns a statistic with a given row count, set of unique keys, and collations.
      static Statistic of​(java.lang.Double rowCount, java.util.List<ImmutableBitSet> keys, java.util.List<RelReferentialConstraint> referentialConstraints, java.util.List<RelCollation> collations)
      Returns a statistic with a given row count, set of unique keys, referential constraints, and collations.
      static Statistic of​(java.util.List<RelReferentialConstraint> referentialConstraints)
      Returns a statistic with a given set of referential constraints.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • UNKNOWN

        public static final Statistic UNKNOWN
        Returns a Statistic that knows nothing about a table.
    • Constructor Detail

      • Statistics

        private Statistics()
    • Method Detail

      • of

        public static Statistic of​(java.util.List<RelReferentialConstraint> referentialConstraints)
        Returns a statistic with a given set of referential constraints.
      • of

        public static Statistic of​(double rowCount,
                                   java.util.List<ImmutableBitSet> keys)
        Returns a statistic with a given row count and set of unique keys.
      • of

        public static Statistic of​(double rowCount,
                                   java.util.List<ImmutableBitSet> keys,
                                   java.util.List<RelCollation> collations)
        Returns a statistic with a given row count, set of unique keys, and collations.
      • of

        public static Statistic of​(java.lang.Double rowCount,
                                   java.util.List<ImmutableBitSet> keys,
                                   java.util.List<RelReferentialConstraint> referentialConstraints,
                                   java.util.List<RelCollation> collations)
        Returns a statistic with a given row count, set of unique keys, referential constraints, and collations.