Package org.apache.datasketches.kll
Enum Class KllSketch.SketchStructure
- All Implemented Interfaces:
Serializable
,Comparable<KllSketch.SketchStructure>
,Constable
- Enclosing class:
- KllSketch
Used primarily to define the structure of the serialized sketch. Also used by the Heap Sketch.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionCompact Empty StructureCompact Full Preamble StructureCompact Single Item StructureUpdatable Preamble Structure -
Method Summary
Modifier and TypeMethodDescriptionint
gets the Preamble Integers for this Structure.int
gets the Serialization Version for this Structure.static KllSketch.SketchStructure
getSketchStructure
(int preInts, int serVer) gets the SketchStructure given preInts and serVer.static KllSketch.SketchStructure
Returns the enum constant of this class with the specified name.static KllSketch.SketchStructure[]
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
-
COMPACT_EMPTY
Compact Empty Structure -
COMPACT_SINGLE
Compact Single Item Structure -
COMPACT_FULL
Compact Full Preamble Structure -
UPDATABLE
Updatable Preamble Structure
-
-
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
-
getPreInts
public int getPreInts()gets the Preamble Integers for this Structure.- Returns:
- the Preamble Integers for this Structure
-
getSerVer
public int getSerVer()gets the Serialization Version for this Structure.- Returns:
- the Serialization Version for this Structure.
-
getSketchStructure
gets the SketchStructure given preInts and serVer.- Parameters:
preInts
- the given preamble size in integersserVer
- the given Serialization Version- Returns:
- the SketchStructure given preInts and serVer.
-