public enum Family extends Enum<Family>
Enum Constant and Description 

A_NOT_B
The A and not B family is an operation for the Theta Sketch Framework of sketches.

ALPHA
The Alpha Sketch family is a member of the Theta Sketch Framework of sketches and is best
suited for realtime processes where both the updating of the sketch and getting the estimate
is performed directly on the sketch.

COMPACT
The Compact Sketch family is a member of the Theta Sketch Framework of sketches.

CPC
Compressed Probabilistic Counting (CPC) Sketch

FREQUENCY
The Frequency family of sketches.

HLL
The HLL family of sketches.

INTERSECTION
The Intersection family is an operation for the Theta Sketch Framework of sketches.

KLL
KLL quanliles sketch

QUANTILES
The Quantiles family of sketches.

QUICKSELECT
The QuickSelect Sketch family is a member of the Theta Sketch Framework of sketches and
is the workhorse of the Theta Sketch Families and can be constructed for either onheap or
offheap operation.

RESERVOIR
The Reservoir family of sketches.

RESERVOIR_UNION
The reservoir sampling family of Union operations.

TUPLE
The Tuple family of sketches is a large family of sketches that are extensions of the
Theta Sketch Framework.

UNION
The Union family is an operation for the Theta Sketch Framework of sketches.

VAROPT
The VarOpt family of sketches.

VAROPT_UNION
The VarOpt family of sketches.

Modifier and Type  Method and Description 

void 
checkFamilyID(int id) 
String 
getFamilyName()
Returns the name for this family

int 
getID()
Returns the byte ID for this family

int 
getMaxPreLongs()
Returns the maximum preamble size for this family in longs

int 
getMinPreLongs()
Returns the minimum preamble size for this family in longs

static Family 
idToFamily(int id)
Returns the Family given the ID

static Family 
stringToFamily(String famName)
Returns the Family given the family name

String 
toString() 
static Family 
valueOf(String name)
Returns the enum constant of this type with the specified name.

static Family[] 
values()
Returns an array containing the constants of this enum type, in
the order they are declared.

public static final Family ALPHA
If the AlphaSketch is fed into any SetOperation, the error distribution reverts back to the normal QuickSelect/KMV error distribution (~1/sqrt(k)). For this reason, the AlphaSketch does not have a sister class for offheap operation. The Alpha Sketch has a roughly 30% faster overall update time as compared to the QuickSelect sketch family.
The Alpha Sketch is created using the UpdateSketch.builder(). See Alpha TCF and Theta Sketch Framework
public static final Family QUICKSELECT
public static final Family COMPACT
public static final Family UNION
public static final Family INTERSECTION
public static final Family A_NOT_B
public static final Family HLL
public static final Family QUANTILES
public static final Family TUPLE
public static final Family FREQUENCY
public static final Family RESERVOIR
public static final Family RESERVOIR_UNION
public static final Family VAROPT
public static final Family VAROPT_UNION
public static final Family KLL
public static final Family CPC
public static Family[] values()
for (Family c : Family.values()) System.out.println(c);
public static Family valueOf(String name)
name
 the name of the enum constant to be returned.IllegalArgumentException
 if this enum type has no constant with the specified nameNullPointerException
 if the argument is nullpublic int getID()
public void checkFamilyID(int id)
id
 the given id, a value < 128.public String getFamilyName()
public int getMinPreLongs()
public int getMaxPreLongs()
public static Family idToFamily(int id)
id
 the given IDCopyright © 2015–2020 The Apache Software Foundation. All rights reserved.