Package org.apache.datasketches.fdt
Class Group
- java.lang.Object
-
- org.apache.datasketches.fdt.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 Summary
Constructors Constructor Description Group()Construct an empty Group
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(Group that)booleanequals(Object that)intgetCount()doublegetEstimate()doublegetFraction()StringgetHeader()doublegetLowerBound()StringgetPrimaryKey()doublegetRse()doublegetUpperBound()inthashCode()Groupinit(String priKey, int count, double estimate, double ub, double lb, double fraction, double rse)Specifies the parameters to be listed as columnsStringtoString()
-
-
-
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 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
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:
compareToin interfaceComparable<Group>- Parameters:
that- The Group to compare to
-
-