Skip to main content

Module codec

Module codec 

Source
Expand description

QUANT_SEG and SKETCH_SEG wire format codec.

Serializes / deserializes quantizer parameters and Count-Min Sketch data to the binary layout defined in the RVF wire spec.

Enums§

CodecError
Errors that can occur while decoding QUANT_SEG payloads.

Functions§

decode_quant_seg
Decode a QUANT_SEG binary payload into a boxed Quantizer.
decode_sketch_seg
Decode a SKETCH_SEG binary payload into a CountMinSketch.
encode_product_quantizer
Encode a ProductQuantizer directly.
encode_quant_seg
Encode a quantizer into the QUANT_SEG binary payload.
encode_rabitq_quantizer
Encode a RaBitQ quantizer into a QUANT_SEG payload.
encode_scalar_quantizer
Encode a ScalarQuantizer directly (preferred over trait-based encoding).
encode_sketch_seg
Encode a CountMinSketch into the SKETCH_SEG binary payload.