Enum FvParameters.SparseCompression

    • Enum Constant Detail

      • NONE

        public static final FvParameters.SparseCompression NONE
        No optimization for sparse vectors.

        Every coordinate is stored using the specified numeric representation.

      • ZRLL_BYTES

        public static final FvParameters.SparseCompression ZRLL_BYTES
        Zero run length list of 8bit values; suitable for very sparse vectors.

        Store the number of leading zeros, and zeros following each element is stored separately in a list of 8 bit unsigned values. If a zero run is longer than the maximum value of representing type (255 in this case) a zero valued coordinate is stored.

    • Method Detail

      • values

        public static FvParameters.SparseCompression[] 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 (FvParameters.SparseCompression c : FvParameters.SparseCompression.values())
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static FvParameters.SparseCompression 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.)
        name - the name of the enum constant to be returned.
        the enum constant with the specified name
        IllegalArgumentException - if this enum type has no constant with the specified name
        NullPointerException - if the argument is null