Expand description
Lazy, selective sample reads with independent traversal and pinned lifetimes.
StructsΒ§
- Group
KeyReader π - Prefetched
Blocks π - A bounded read-ahead window. Byte slices retain the shared fetched allocation; the reservation therefore lives until the whole window is replaced or cancelled.
- Read
Scratch π - Per-stream scratch for decoding one block.
- Samples
Descriptor π - Samples
Reader π
ConstantsΒ§
- ARRAY_
HEADER_ πBYTES - Fixed per-column charge
arrowreports beyond the columnβs own data. - BUFFER_
ALIGNMENT π - Granularity
arrow_bufferrounds every buffer allocation up to, so each column can retain up to this much more than the bytes it holds. - KEY_
ENTRY_ πBYTES - Retained bytes per cached key beyond the key bytes themselves: the boxed key and the allocatorβs rounding of the keyβs own allocation. The map entry is not charged, matching the per-block identity allowance, so a page of short keys still fits a small scan pool.
- MAX_
READ_ πBYTES - MAX_
READ_ πGAP
FunctionsΒ§
- can_
merge_ πranges - Allows bounded over-read to amortize filesystem and scheduling costs.
- decode_
float_ πcolumn - fetch_
columns π - Fetch selected ranges with bounded gap coalescing and shared-buffer slices. The read window and scan reservation bound retained buffers; OpenDAL bounds concurrency to 8.
- fetch_
ranges π - Fetches nearby ranges in bounded merged reads.
- load_
column_ πchunk - Keep column loads separate from metadata for future Mito cache integration.
- load_
groups π - Read one part directory. Authenticate its ranges and reconcile the aggregate bounds and counts with the manifest before pruning individual groups.
- load_
metadata_ πpage - Reuses validated immutable metadata; traversal remains local to each stream.
- matches π
- Bounds-only pruning. Selection itself is exact and decided by
owns. - merge_
read_ πranges - merge_
read_ πranges_ into merge_read_rangesinto a caller-owned buffer, so a stream coalesces into one allocation.- owns π
- Every block records the exact series key that owns its rows. A coarse identifier match is not ownership: a colliding partner shares the identifier.
- prefetch_
blocks π - read_
block π - release_
read_ πahead - Drops the read-ahead window so a block that fits on its own can retry its reservation, and keeps the next blocks from attempting the same window again.
- reserve_
keys π - retain_
boundary_ πkey - Replaces the exact key that carries one series across a group boundary.
- retained_
key_ πbytes - Retained bytes of one cached key: its bytes, the boxed key, and the allocatorβs rounding.
- timestamp_
array π