public class VectorMetadataParser extends Object implements ComplexDataParser<VectorMetadata>
This parser converts the response from the Redis VINFO command into a VectorMetadata object, which contains
information about a vector set including its dimensionality, quantization type, size, and other parameters related to the
HNSW graph structure.
| Modifier and Type | Field and Description |
|---|---|
static VectorMetadataParser |
INSTANCE |
| Modifier and Type | Method and Description |
|---|---|
VectorMetadata |
parse(ComplexData dynamicData)
Parse the output of the Redis VINFO command and convert it to a
VectorMetadata object. |
public static final VectorMetadataParser INSTANCE
public VectorMetadata parse(ComplexData dynamicData)
VectorMetadata object.
The VINFO command returns an array of key-value pairs, where each pair consists of a field name followed by its value.
This method extracts the relevant fields and populates a VectorMetadata object with the corresponding values.
parse in interface ComplexDataParser<VectorMetadata>dynamicData - output of VINFO commandVectorMetadata instance containing the parsed informationIllegalArgumentException - if the input data is null, empty, or has an invalid formatCopyright © 2025 lettuce.io. All rights reserved.