Expand description
Cache-replay plumbing for POST /api/v1/parse/parquet/optimized, split out
of parquet_optimized.rs (issue #5128) so the route stays under the
module-size ratchet once it gains a ?sha256= probe of its own — the same
reason the flat route’s replay lives in cached_replay.rs rather than in
parquet_stream.rs. replay_optimized_by_client_hash IS that probe.
Everything here is pub(super): only parquet_optimized.rs and its
siblings under routes::parse need it.
Structs§
- Optimized
Parquet 🔒Metadata Header - Response header containing metadata for optimized Parquet response.
Functions§
- cache_
data_ 🔒model - Cache the data model produced alongside this route’s geometry (#5129).
- cache_
optimized_ 🔒response - Write the optimized body and then its metadata, stopping at the first failure so metadata never outlives a body that was never stored.
- optimized_
parquet_ 🔒response - The optimized route’s wire response, built in ONE place.
- readable_
entry 🔒 - Read a cache entry, treating an unreadable one as absent.
- replay_
optimized_ 🔒by_ client_ hash - Serve
POST /api/v1/parse/parquet/optimizedfrom a client-supplied file hash, with no request body at all (issue #5128), the same contract the flat route’s?sha256=probe has (issue #3901):cached_replay::replay_by_client_hash. - try_
cached_ 🔒optimized_ parquet - Try to serve this request from the cache (issue #3889).
Ok(Some(_))is a usable hit the caller returns as-is without parsing; anything else falls through to the live parse, which rewrites the entries.