Expand description
Fetching batches of data from persist’s backing store
Structs§
- Batch
Fetcher - Capable of fetching
LeasedBatchPart
while not holding any capabilities. - Batch
Fetcher 🔒Config - Encoded
Part 🔒 - A Blob object that has been fetched, but has no associated decoding logic.
- Fetched
Blob - A Blob object that has been fetched, but not at all decoded.
- Fetched
Part - 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.
- Leased
Batch Part - A token representing one fetch-able batch part.
- Serde
Leased 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. - Shard
Source Part - FetchedPart but with an accompanying permit from the fetch mem/disk semaphore.
Enums§
- Fetch
Batch 🔒Filter - Fetched
Blob 🔒Buf - Part
Decode Format - Format we’ll use when decoding a
Part
.
Constants§
- FETCH_
SEMAPHORE_ 🔒COST_ ADJUSTMENT - FETCH_
SEMAPHORE_ 🔒PERMIT_ ADJUSTMENT - OPTIMIZE_
IGNORED_ 🔒DATA_ FETCH - PART_
DECODE_ 🔒FORMAT
Functions§
- decode_
batch_ 🔒part_ blob - fetch_
batch_ 🔒part - fetch_
batch_ 🔒part_ blob - fetch_
leased_ 🔒part - Trade in an exchange-able LeasedBatchPart for the data it represents.