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§
- Codec
Error - 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.