Package org.apache.datasketches.kll
Enum KllSketch.SketchStructure
- java.lang.Object
-
- java.lang.Enum<KllSketch.SketchStructure>
-
- org.apache.datasketches.kll.KllSketch.SketchStructure
-
- All Implemented Interfaces:
Serializable
,Comparable<KllSketch.SketchStructure>
- Enclosing class:
- KllSketch
public static enum KllSketch.SketchStructure extends Enum<KllSketch.SketchStructure>
Used primarily to define the structure of the serialized sketch. Also used by the Heap Sketch.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description COMPACT_EMPTY
COMPACT_FULL
COMPACT_SINGLE
UPDATABLE
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getPreInts()
int
getSerVer()
static KllSketch.SketchStructure
getSketchStructure(int preInts, int serVer)
static KllSketch.SketchStructure
valueOf(String name)
Returns the enum constant of this type with the specified name.static KllSketch.SketchStructure[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
COMPACT_EMPTY
public static final KllSketch.SketchStructure COMPACT_EMPTY
-
COMPACT_SINGLE
public static final KllSketch.SketchStructure COMPACT_SINGLE
-
COMPACT_FULL
public static final KllSketch.SketchStructure COMPACT_FULL
-
UPDATABLE
public static final KllSketch.SketchStructure UPDATABLE
-
-
Method Detail
-
values
public static KllSketch.SketchStructure[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (KllSketch.SketchStructure c : KllSketch.SketchStructure.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static KllSketch.SketchStructure valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified nameNullPointerException
- if the argument is null
-
getPreInts
public int getPreInts()
-
getSerVer
public int getSerVer()
-
getSketchStructure
public static KllSketch.SketchStructure getSketchStructure(int preInts, int serVer)
-
-