Skip to main content

nodedb_query/msgpack_scan/
mod.rs

1//! Zero-deserialization binary scanner for MessagePack documents.
2//!
3//! Operates directly on `&[u8]` MessagePack bytes without decoding into
4//! `serde_json::Value` or `nodedb_types::Value`. Field extraction, numeric
5//! reads, comparisons, and hashing all work on raw byte offsets.
6
7pub mod aggregate;
8pub mod compare;
9pub mod field;
10pub mod filter;
11pub mod group_key;
12pub mod index;
13pub mod reader;
14pub mod sidecar;
15pub mod writer;
16
17pub use aggregate::compute_aggregate_binary;
18pub use compare::{compare_field_bytes, hash_field_bytes};
19pub use field::{extract_field, extract_path};
20pub use group_key::build_group_key;
21pub use index::FieldIndex;
22pub use reader::{
23    array_header, map_header, read_bool, read_f64, read_i64, read_null, read_str, read_value,
24    skip_value,
25};
26pub use sidecar::{
27    SidecarEntry, SidecarFieldIndex, build_sidecar, field_index_from_sidecar, has_sidecar,
28    msgpack_bytes, sidecar_lookup,
29};
30pub use writer::{
31    build_str_map, inject_str_field, merge_fields, write_array_header, write_bin, write_bool,
32    write_f64, write_i64, write_kv_bool, write_kv_f64, write_kv_i64, write_kv_null, write_kv_raw,
33    write_kv_str, write_map_header, write_null, write_str,
34};