Package org.apache.datasketches.kll
Enum Class KllSketch.SketchType
- All Implemented Interfaces:
Serializable
,Comparable<KllSketch.SketchType>
,Constable
- Enclosing class:
- KllSketch
Used to define the variable type of the current instance of this class.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionKllDoublesSketchKllFloatsSketchKllItemsSketchKllDoublesSketch -
Method Summary
Modifier and TypeMethodDescriptionint
getBytes()
Gets the item size in bytes.getName()
Get the name of the associated sketchstatic KllSketch.SketchType
Returns the enum constant of this class with the specified name.static KllSketch.SketchType[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.Methods inherited from class java.lang.Enum
compareTo, describeConstable, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
-
Enum Constant Details
-
DOUBLES_SKETCH
KllDoublesSketch -
FLOATS_SKETCH
KllFloatsSketch -
ITEMS_SKETCH
KllItemsSketch -
LONGS_SKETCH
KllDoublesSketch
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-
getBytes
public int getBytes()Gets the item size in bytes. If the item is generic, this returns zero.- Returns:
- the item size in bytes
-
getName
Get the name of the associated sketch- Returns:
- the name of the associated sketch
-