Skip to main content

Module reader

Module reader 

Source
Expand description

Lazy, selective sample reads with independent traversal and pinned lifetimes.

StructsΒ§

GroupKeyReader πŸ”’
PrefetchedBlocks πŸ”’
A bounded read-ahead window. Byte slices retain the shared fetched allocation; the reservation therefore lives until the whole window is replaced or cancelled.
ReadScratch πŸ”’
Per-stream scratch for decoding one block.
SamplesDescriptor πŸ”’
SamplesReader πŸ”’

ConstantsΒ§

ARRAY_HEADER_BYTES πŸ”’
Fixed per-column charge arrow reports beyond the column’s own data.
BUFFER_ALIGNMENT πŸ”’
Granularity arrow_buffer rounds 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_ranges into 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 πŸ”’