![]() |
Signet Forge 0.1.0
C++20 Parquet library with AI-native extensions
|
DEMO |
Reads quantized page data (FIXED_LEN_BYTE_ARRAY) and dequantizes to float32 on demand. More...
#include <quantized_vector.hpp>
Classes | |
| struct | RawResult |
| Result of a raw (non-dequantized) page read. More... | |
Public Member Functions | |
| QuantizedVectorReader (QuantizationParams params) | |
| Construct a reader with the given quantization parameters. | |
| std::vector< std::vector< float > > | read_page (const uint8_t *data, size_t data_size) |
| Read an entire page and dequantize all vectors to float32. | |
| std::vector< float > | read_vector (const uint8_t *page_data, size_t page_size, size_t index) |
| Read and dequantize a single vector by index within the page. | |
| expected< RawResult > | read_raw (const uint8_t *data, size_t data_size) |
| Read raw quantized bytes without dequantization. | |
Reads quantized page data (FIXED_LEN_BYTE_ARRAY) and dequantizes to float32 on demand.
Definition at line 325 of file quantized_vector.hpp.
|
inlineexplicit |
Construct a reader with the given quantization parameters.
Definition at line 328 of file quantized_vector.hpp.
|
inline |
Read an entire page and dequantize all vectors to float32.
| data | Pointer to page data (FIXED_LEN_BYTE_ARRAY values). |
| data_size | Size of the page data in bytes. |
Definition at line 1299 of file quantized_vector.hpp.
|
inline |
Read raw quantized bytes without dequantization.
| data | Pointer to page data. |
| data_size | Size of the page data in bytes. |
Definition at line 1330 of file quantized_vector.hpp.
|
inline |
Read and dequantize a single vector by index within the page.
| page_data | Pointer to page data. |
| page_size | Size of the page data in bytes. |
| index | Zero-based vector index within the page. |
dim. Definition at line 1313 of file quantized_vector.hpp.