pub type ChunkCacheEncodedLruChunkLimit = ChunkCacheLruChunkLimit<ChunkCacheTypeEncoded>;Expand description
An LRU (least recently used) encoded chunk cache with a fixed chunk capacity.
Aliased Type§
pub struct ChunkCacheEncodedLruChunkLimit { /* private fields */ }Trait Implementations§
Source§impl ChunkCache for ChunkCacheEncodedLruChunkLimit
impl ChunkCache for ChunkCacheEncodedLruChunkLimit
Source§fn array(&self) -> Arc<Array<dyn ReadableStorageTraits>>
fn array(&self) -> Arc<Array<dyn ReadableStorageTraits>>
Return the array associated with the chunk cache.
Source§fn len(&self) -> usize
fn len(&self) -> usize
Return the number of chunks in the cache. For a thread-local cache, returns the number of chunks cached on the current thread.
Source§fn retrieve_chunk(
&self,
chunk_indices: &[u64],
options: &CodecOptions,
) -> Result<ChunkCacheTypeDecoded, ArrayError>
fn retrieve_chunk( &self, chunk_indices: &[u64], options: &CodecOptions, ) -> Result<ChunkCacheTypeDecoded, ArrayError>
Cached variant of
retrieve_chunk_opt.Source§fn retrieve_chunk_subset(
&self,
chunk_indices: &[u64],
chunk_subset: &ArraySubset,
options: &CodecOptions,
) -> Result<ChunkCacheTypeDecoded, ArrayError>
fn retrieve_chunk_subset( &self, chunk_indices: &[u64], chunk_subset: &ArraySubset, options: &CodecOptions, ) -> Result<ChunkCacheTypeDecoded, ArrayError>
Cached variant of
retrieve_chunk_subset_opt.Source§fn retrieve_chunk_elements<T: ElementOwned>(
&self,
chunk_indices: &[u64],
options: &CodecOptions,
) -> Result<Vec<T>, ArrayError>where
Self: Sized,
fn retrieve_chunk_elements<T: ElementOwned>(
&self,
chunk_indices: &[u64],
options: &CodecOptions,
) -> Result<Vec<T>, ArrayError>where
Self: Sized,
Cached variant of
retrieve_chunk_elements_opt.Source§fn retrieve_chunk_ndarray<T: ElementOwned>(
&self,
chunk_indices: &[u64],
options: &CodecOptions,
) -> Result<ArrayD<T>, ArrayError>where
Self: Sized,
fn retrieve_chunk_ndarray<T: ElementOwned>(
&self,
chunk_indices: &[u64],
options: &CodecOptions,
) -> Result<ArrayD<T>, ArrayError>where
Self: Sized,
Available on crate feature
ndarray only.Cached variant of
retrieve_chunk_ndarray_opt.Source§fn retrieve_chunk_subset_elements<T: ElementOwned>(
&self,
chunk_indices: &[u64],
chunk_subset: &ArraySubset,
options: &CodecOptions,
) -> Result<Vec<T>, ArrayError>where
Self: Sized,
fn retrieve_chunk_subset_elements<T: ElementOwned>(
&self,
chunk_indices: &[u64],
chunk_subset: &ArraySubset,
options: &CodecOptions,
) -> Result<Vec<T>, ArrayError>where
Self: Sized,
Cached variant of
retrieve_chunk_subset_elements_opt.Source§fn retrieve_chunk_subset_ndarray<T: ElementOwned>(
&self,
chunk_indices: &[u64],
chunk_subset: &ArraySubset,
options: &CodecOptions,
) -> Result<ArrayD<T>, ArrayError>where
Self: Sized,
fn retrieve_chunk_subset_ndarray<T: ElementOwned>(
&self,
chunk_indices: &[u64],
chunk_subset: &ArraySubset,
options: &CodecOptions,
) -> Result<ArrayD<T>, ArrayError>where
Self: Sized,
Available on crate feature
ndarray only.Cached variant of
retrieve_chunk_subset_ndarray_opt.Source§fn retrieve_array_subset(
&self,
array_subset: &ArraySubset,
options: &CodecOptions,
) -> Result<ChunkCacheTypeDecoded, ArrayError>
fn retrieve_array_subset( &self, array_subset: &ArraySubset, options: &CodecOptions, ) -> Result<ChunkCacheTypeDecoded, ArrayError>
Cached variant of
retrieve_array_subset_opt.Source§fn retrieve_array_subset_elements<T: ElementOwned>(
&self,
array_subset: &ArraySubset,
options: &CodecOptions,
) -> Result<Vec<T>, ArrayError>where
Self: Sized,
fn retrieve_array_subset_elements<T: ElementOwned>(
&self,
array_subset: &ArraySubset,
options: &CodecOptions,
) -> Result<Vec<T>, ArrayError>where
Self: Sized,
Cached variant of
retrieve_array_subset_elements_opt.Source§fn retrieve_array_subset_ndarray<T: ElementOwned>(
&self,
array_subset: &ArraySubset,
options: &CodecOptions,
) -> Result<ArrayD<T>, ArrayError>where
Self: Sized,
fn retrieve_array_subset_ndarray<T: ElementOwned>(
&self,
array_subset: &ArraySubset,
options: &CodecOptions,
) -> Result<ArrayD<T>, ArrayError>where
Self: Sized,
Available on crate feature
ndarray only.Cached variant of
retrieve_array_subset_ndarray_opt.Source§fn retrieve_chunks(
&self,
chunks: &ArraySubset,
options: &CodecOptions,
) -> Result<ChunkCacheTypeDecoded, ArrayError>
fn retrieve_chunks( &self, chunks: &ArraySubset, options: &CodecOptions, ) -> Result<ChunkCacheTypeDecoded, ArrayError>
Cached variant of
retrieve_chunks_opt.Source§fn retrieve_chunks_elements<T: ElementOwned>(
&self,
chunks: &ArraySubset,
options: &CodecOptions,
) -> Result<Vec<T>, ArrayError>where
Self: Sized,
fn retrieve_chunks_elements<T: ElementOwned>(
&self,
chunks: &ArraySubset,
options: &CodecOptions,
) -> Result<Vec<T>, ArrayError>where
Self: Sized,
Cached variant of
retrieve_chunks_elements_opt.Source§fn retrieve_chunks_ndarray<T: ElementOwned>(
&self,
chunks: &ArraySubset,
options: &CodecOptions,
) -> Result<ArrayD<T>, ArrayError>where
Self: Sized,
fn retrieve_chunks_ndarray<T: ElementOwned>(
&self,
chunks: &ArraySubset,
options: &CodecOptions,
) -> Result<ArrayD<T>, ArrayError>where
Self: Sized,
Available on crate feature
ndarray only.Cached variant of
retrieve_chunks_ndarray_opt.