Package org.apache.datasketches.fdt
Class Group
java.lang.Object
org.apache.datasketches.fdt.Group
- All Implemented Interfaces:
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 Details
-
Group
public Group()Construct an empty Group
-
-
Method Details
-
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 sketchcount
- the number of retained rows associated with this groupestimate
- the estimate of the original population associated with this groupub
- the upper bound of the estimatelb
- the lower bound of the estimatefraction
- the fraction of all retained rows of the sketch associated with this grouprse
- the estimated Relative Standard Error for this group.- Returns:
- return this
-
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
- Returns:
- the descriptive header
-
toString
-
compareTo
- Specified by:
compareTo
in interfaceComparable<Group>
- Parameters:
that
- The Group to compare to
-
equals
-
hashCode
public int hashCode()
-