pub struct LakehouseByteCache { /* private fields */ }Expand description
Local byte cache for s3:// Parquet objects.
Only an object with an ETag or version is served from or filled into the cache; its entry is keyed by that identity, the bucket and endpoint, and the object location.
Implementations§
Source§impl LakehouseByteCache
impl LakehouseByteCache
Sourcepub fn new(root: impl Into<PathBuf>) -> Self
pub fn new(root: impl Into<PathBuf>) -> Self
A cache under root that serves complete entries and never fills.
Sourcepub fn with_fill(self, fill: LakehouseByteCacheFill) -> Self
pub fn with_fill(self, fill: LakehouseByteCacheFill) -> Self
Selects when a miss is filled.
Sourcepub fn ignoring_hits(self) -> Self
pub fn ignoring_hits(self) -> Self
Reads every object remotely even when a complete entry exists, for
benchmark isolation. Misses are still filled as Self::with_fill
selects.
Sourcepub fn with_max_retained_bytes(self, bytes: NonZeroU64) -> Self
pub fn with_max_retained_bytes(self, bytes: NonZeroU64) -> Self
Best-effort byte target the cache root is trimmed toward.
Trait Implementations§
Source§impl Clone for LakehouseByteCache
impl Clone for LakehouseByteCache
Source§impl Debug for LakehouseByteCache
impl Debug for LakehouseByteCache
impl Eq for LakehouseByteCache
Source§impl PartialEq for LakehouseByteCache
impl PartialEq for LakehouseByteCache
impl StructuralPartialEq for LakehouseByteCache
Auto Trait Implementations§
impl Freeze for LakehouseByteCache
impl RefUnwindSafe for LakehouseByteCache
impl Send for LakehouseByteCache
impl Sync for LakehouseByteCache
impl Unpin for LakehouseByteCache
impl UnsafeUnpin for LakehouseByteCache
impl UnwindSafe for LakehouseByteCache
Blanket Implementations§
impl<T> Allocation for T
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request