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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintbooleanintgetCount()Returns the countdoubleReturns the estimatedoubleReturns the fraction for this groupReturns the descriptive headerdoubleReturns the lower boundGets the primary key of type StringdoublegetRse()Returns the RSEdoubleReturns the upper boundinthashCode()Specifies the parameters to be listed as columnstoString()
-
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
-
getCount
public int getCount()Returns the count- Returns:
- the count
-
getEstimate
public double getEstimate()Returns the estimate- Returns:
- the estimate
-
getUpperBound
public double getUpperBound()Returns the upper bound- Returns:
- the upper bound
-
getLowerBound
public double getLowerBound()Returns the lower bound- Returns:
- the lower bound
-
getFraction
public double getFraction()Returns the fraction for this group- Returns:
- the fraction for this group
-
getRse
public double getRse()Returns the RSE- Returns:
- the RSE
-
getHeader
-
toString
-
compareTo
- Specified by:
compareToin interfaceComparable<Group>
-
equals
-
hashCode
-