Module mz_persist_client::fetch
source Β· Expand description
Fetching batches of data from persistβs backing store
Structs§
- Capable of fetching
LeasedBatchPart
while not holding any capabilities. - Batch
Fetcher πConfig - Cursor πA pointer into a particular encoded part, with methods for fetching an update and scanning forward to the next. It is an error to use the same cursor for distinct parts.
- Encoded
Part πA Blob object that has been fetched, but has no associated decoding logic. - A Blob object that has been fetched, but not at all decoded.
- A Blob object that has been fetched, but not yet fully decoded.
- Lease πThis represents the lease of a seqno. Itβs generally paired with some external state, like a hollow part: holding this lease indicates that we may still want to fetch that part, and should hold back GC to keep it around.
- A token representing one fetch-able batch part.
- This represents the serde encoding for
LeasedBatchPart
. We expose the struct itself (unlike other encodable structs) to attempt to provide stricter drop semantics onLeasedBatchPart
, i.e.SerdeLeasedBatchPart
is exchangeable (including over the network), whereLeasedBatchPart
is not. - FetchedPart but with an accompanying permit from the fetch mem/disk semaphore.
Enums§
- Fetch
Batch πFilter - Fetched
Blob πBuf - Format weβll use when decoding a
Part2
.
Constants§
- PART_
DECOD πE_ FORMAT
Functions§
- fetch_
batch_ πpart - fetch_
leased_ πpart Trade in an exchange-able LeasedBatchPart for the data it represents.