Enum FvParameters.SparseCompression
- java.lang.Object
-
- java.lang.Enum<FvParameters.SparseCompression>
-
- com.chemaxon.descriptors.vectors.floats.FvParameters.SparseCompression
-
- All Implemented Interfaces:
Serializable
,Comparable<FvParameters.SparseCompression>
- Enclosing class:
- FvParameters
public static enum FvParameters.SparseCompression extends Enum<FvParameters.SparseCompression>
Optimization for sparse vectors.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description NONE
No optimization for sparse vectors.ZRLL_BYTES
Zero run length list of 8bit values; suitable for very sparse vectors.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static FvParameters.SparseCompression
valueOf(String name)
Returns the enum constant of this type with the specified name.static FvParameters.SparseCompression[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
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()) System.out.println(c);
- Returns:
- 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.)- 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
-
-