public class RawVectorParser extends Object implements ComplexDataParser<RawVector>
This parser converts the response from the Redis VEMB command with the RAW option into a RawVector object, which
contains the raw binary vector data along with metadata such as quantization type, normalization factor, and quantization
range.
The VEMB command with RAW option returns the following data:
| Modifier and Type | Field and Description |
|---|---|
static RawVectorParser |
INSTANCE |
| Modifier and Type | Method and Description |
|---|---|
RawVector |
parse(ComplexData dynamicData)
Parse the output of the Redis VEMB command with the RAW option and convert it to a
RawVector object. |
public static final RawVectorParser INSTANCE
public RawVector parse(ComplexData dynamicData)
RawVector object.
The VEMB command with RAW option returns an array with the following elements:
parse in interface ComplexDataParser<RawVector>dynamicData - output of VEMB command with RAW optionRawVector instance containing the parsed informationIllegalArgumentException - if the input data is null, empty, or has an invalid formatCopyright © 2025 lettuce.io. All rights reserved.