Class Group

  • All Implemented Interfaces:
    Comparable<Group>

    public class Group
    extends Object
    implements Comparable<Group>
    Defines a Group from a Frequent Distinct Tuple query. This class is called internally during post processing and is not intended to be called by the user.
    Author:
    Lee Rhodes
    • Constructor Detail

      • Group

        public Group()
        Construct an empty Group
    • Method Detail

      • init

        public Group init​(String priKey,
                          int count,
                          double estimate,
                          double ub,
                          double lb,
                          double fraction,
                          double rse)
        Specifies the parameters to be listed as columns
        Parameters:
        priKey - the primary key of the FDT sketch
        count - the number of retained rows associated with this group
        estimate - the estimate of the original population associated with this group
        ub - the upper bound of the estimate
        lb - the lower bound of the estimate
        fraction - the fraction of all retained rows of the sketch associated with this group
        rse - the estimated Relative Standard Error for this group.
        Returns:
        return this
      • getPrimaryKey

        public String getPrimaryKey()
        Returns:
        priKey of type T
      • getCount

        public int getCount()
        Returns:
        the count
      • getEstimate

        public double getEstimate()
        Returns:
        the estimate
      • getUpperBound

        public double getUpperBound()
        Returns:
        the upper bound
      • getLowerBound

        public double getLowerBound()
        Returns:
        the lower bound
      • getFraction

        public double getFraction()
        Returns:
        the fraction for this group
      • getRse

        public double getRse()
        Returns:
        the RSE
      • getHeader

        public String getHeader()
        Returns:
        the descriptive header
      • compareTo

        public int compareTo​(Group that)
        Specified by:
        compareTo in interface Comparable<Group>
        Parameters:
        that - The Group to compare to
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object