Enum Class FvParameters.SparseCompression

java.lang.Object
java.lang.Enum<FvParameters.SparseCompression>
com.chemaxon.descriptors.vectors.floats.FvParameters.SparseCompression
All Implemented Interfaces:
Serializable, Comparable<FvParameters.SparseCompression>, java.lang.constant.Constable
Enclosing class:
FvParameters

public static enum FvParameters.SparseCompression extends Enum<FvParameters.SparseCompression>
Optimization for sparse vectors.
  • Enum Constant Details

    • 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 Details

    • values

      public static FvParameters.SparseCompression[] 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

      public static FvParameters.SparseCompression valueOf(String name)
      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 name
      NullPointerException - if the argument is null