Enum KllSketch.SketchStructure

    • 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 name
        NullPointerException - 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

        public static KllSketch.SketchStructure getSketchStructure​(int preInts,
                                                                   int serVer)
        gets the SketchStructure given preInts and serVer.
        Parameters:
        preInts - the given preamble size in integers
        serVer - the given Serialization Version
        Returns:
        the SketchStructure given preInts and serVer.