VectorSearchCompressionKind Class

public final class VectorSearchCompressionKind
extends ExpandableStringEnum<VectorSearchCompressionKind>

The compression method used for indexing and querying.

Field Summary

Modifier and Type Field and Description
static final VectorSearchCompressionKind BINARY_QUANTIZATION

Binary Quantization, a type of compression method.

static final VectorSearchCompressionKind SCALAR_QUANTIZATION

Scalar Quantization, a type of compression method.

Constructor Summary

Constructor Description
VectorSearchCompressionKind()

Deprecated

Use the fromString(String name) factory method.

Creates a new instance of VectorSearchCompressionKind value.

Method Summary

Modifier and Type Method and Description
static VectorSearchCompressionKind fromString(String name)

Creates or finds a VectorSearchCompressionKind from its string representation.

static Collection<VectorSearchCompressionKind> values()

Gets known VectorSearchCompressionKind values.

Methods inherited from ExpandableStringEnum

Methods inherited from java.lang.Object

Field Details

BINARY_QUANTIZATION

public static final VectorSearchCompressionKind BINARY_QUANTIZATION

Binary Quantization, a type of compression method. In binary quantization, the original vectors values are compressed to the narrower binary type by discretizing and representing each component of a vector using binary values, thereby reducing the overall data size.

SCALAR_QUANTIZATION

public static final VectorSearchCompressionKind SCALAR_QUANTIZATION

Scalar Quantization, a type of compression method. In scalar quantization, the original vectors values are compressed to a narrower type by discretizing and representing each component of a vector using a reduced set of quantized values, thereby reducing the overall data size.

Constructor Details

VectorSearchCompressionKind

@Deprecated
public VectorSearchCompressionKind()

Deprecated

Use the fromString(String name) factory method.

Creates a new instance of VectorSearchCompressionKind value.

Method Details

fromString

public static VectorSearchCompressionKind fromString(String name)

Creates or finds a VectorSearchCompressionKind from its string representation.

Parameters:

name - a name to look for.

Returns:

the corresponding VectorSearchCompressionKind.

values

public static Collection values()

Gets known VectorSearchCompressionKind values.

Returns:

known VectorSearchCompressionKind values.

Applies to