pub enum CacheEntry {
MemoryArrow(ArrayRef),
MemoryLiquid(LiquidArrayRef),
MemorySqueezedLiquid(LiquidSqueezedArrayRef),
DiskLiquid(DataType),
DiskArrow(DataType),
}Expand description
A cached entry storing data in various formats.
Variants§
MemoryArrow(ArrayRef)
Cached batch in memory as Arrow array.
MemoryLiquid(LiquidArrayRef)
Cached batch in memory as liquid array.
MemorySqueezedLiquid(LiquidSqueezedArrayRef)
Cached batch in memory as squeezed liquid array.
DiskLiquid(DataType)
Cached batch on disk as liquid array.
DiskArrow(DataType)
Cached batch on disk as Arrow array.
Implementations§
Source§impl CacheEntry
impl CacheEntry
Sourcepub fn memory_arrow(array: ArrayRef) -> Self
pub fn memory_arrow(array: ArrayRef) -> Self
Construct a cached batch stored as an in-memory Arrow array.
Sourcepub fn memory_liquid(array: LiquidArrayRef) -> Self
pub fn memory_liquid(array: LiquidArrayRef) -> Self
Construct a cached batch stored as an in-memory Liquid array.
Sourcepub fn memory_squeezed_liquid(array: LiquidSqueezedArrayRef) -> Self
pub fn memory_squeezed_liquid(array: LiquidSqueezedArrayRef) -> Self
Construct a cached batch stored as an in-memory squeezed Liquid array.
Sourcepub fn disk_liquid(data_type: DataType) -> Self
pub fn disk_liquid(data_type: DataType) -> Self
Construct a cached batch stored on disk as Liquid bytes.
Sourcepub fn disk_arrow(data_type: DataType) -> Self
pub fn disk_arrow(data_type: DataType) -> Self
Construct a cached batch stored on disk as Arrow bytes.
Sourcepub fn memory_usage_bytes(&self) -> usize
pub fn memory_usage_bytes(&self) -> usize
Memory usage reported by the underlying representation.
Sourcepub fn reference_count(&self) -> usize
pub fn reference_count(&self) -> usize
Reference count (if any) of the backing storage.
Trait Implementations§
Source§impl Clone for CacheEntry
impl Clone for CacheEntry
Source§fn clone(&self) -> CacheEntry
fn clone(&self) -> CacheEntry
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CacheEntry
impl Debug for CacheEntry
Source§impl Display for CacheEntry
impl Display for CacheEntry
Source§impl From<&CacheEntry> for CachedBatchType
impl From<&CacheEntry> for CachedBatchType
Source§fn from(batch: &CacheEntry) -> Self
fn from(batch: &CacheEntry) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for CacheEntry
impl !RefUnwindSafe for CacheEntry
impl Send for CacheEntry
impl Sync for CacheEntry
impl Unpin for CacheEntry
impl UnsafeUnpin for CacheEntry
impl !UnwindSafe for CacheEntry
Blanket Implementations§
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<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