Skip to main content

Module fetch

Module fetch 

Source
Expand description

Fetching batches of data from persist’s backing store

Structs§

BatchFetcher
Capable of fetching LeasedBatchPart while not holding any capabilities.
ExchangeableBatchPart
This represents the serde encoding for LeasedBatchPart. We expose the struct itself (unlike other encodable structs) to attempt to provide stricter drop semantics on LeasedBatchPart, i.e. SerdeLeasedBatchPart is exchangeable (including over the network), where LeasedBatchPart is not.
FetchedBlob
A Blob object that has been fetched, but not at all decoded.
FetchedPart
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.
LeasedBatchPart
A token representing one fetch-able batch part.
ShardSourcePart
FetchedPart but with an accompanying permit from the fetch mem/disk semaphore.

Enums§

PartDecodeFormat
Format we’ll use when decoding a Part.