Package com.redis.vl.schema
Enum Class VectorField.CompressionType
- All Implemented Interfaces:
Serializable,Comparable<VectorField.CompressionType>,Constable
- Enclosing class:
VectorField
Vector compression types for SVS-VAMANA algorithm.
Compression families:
- LVQ (Learned Vector Quantization): Reduces storage without dimensionality reduction
- LeanVec: Combines dimensionality reduction with quantization for maximum compression
Bit depths:
- 4-bit: Higher compression, lower accuracy
- 8-bit: Lower compression, higher accuracy
- 4x4, 4x8, 8x8: Hybrid approaches with different primary/secondary quantization
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionLeanVec with 4x8 bit quantization (supports dimensionality reduction)LeanVec with 8x8 bit quantization (supports dimensionality reduction)Learned Vector Quantization - 4 bits per dimensionLearned Vector Quantization - 4x4 bits (hybrid)Learned Vector Quantization - 4x8 bits (hybrid)Learned Vector Quantization - 8 bits per dimension -
Method Summary
Modifier and TypeMethodDescriptiongetValue()Get the compression type value for RedisbooleanCheck if this is a LeanVec compression type.booleanisLVQ()Check if this is an LVQ compression type.static VectorField.CompressionTypeReturns the enum constant of this class with the specified name.static VectorField.CompressionType[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
LVQ4
Learned Vector Quantization - 4 bits per dimension -
LVQ4x4
Learned Vector Quantization - 4x4 bits (hybrid) -
LVQ4x8
Learned Vector Quantization - 4x8 bits (hybrid) -
LVQ8
Learned Vector Quantization - 8 bits per dimension -
LeanVec4x8
LeanVec with 4x8 bit quantization (supports dimensionality reduction) -
LeanVec8x8
LeanVec with 8x8 bit quantization (supports dimensionality reduction)
-
-
Method Details
-
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
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 nameNullPointerException- if the argument is null
-
getValue
Get the compression type value for Redis- Returns:
- Compression type value
-
isLeanVec
public boolean isLeanVec()Check if this is a LeanVec compression type. LeanVec types support dimensionality reduction via the 'reduce' parameter.- Returns:
- true if LeanVec compression type
-
isLVQ
public boolean isLVQ()Check if this is an LVQ compression type. LVQ types do NOT support dimensionality reduction.- Returns:
- true if LVQ compression type
-