pub struct DatasetCatalog { /* private fields */ }Expand description
Hierarchical catalog whose memory scales with datasets, not logical chunks.
Implementations§
Source§impl DatasetCatalog
impl DatasetCatalog
Sourcepub fn new(datasets: Vec<DatasetDescriptor>) -> Result<Self, ProviderError>
pub fn new(datasets: Vec<DatasetDescriptor>) -> Result<Self, ProviderError>
Validates, sorts, and shares dataset metadata.
§Errors
Rejects duplicate dataset identities and overlapping chunk namespaces.
Sourcepub fn datasets(&self) -> &[DatasetDescriptor]
pub fn datasets(&self) -> &[DatasetDescriptor]
Shared sorted descriptors.
Sourcepub fn get(&self, id: DatasetId) -> Option<DatasetDescriptor>
pub fn get(&self, id: DatasetId) -> Option<DatasetDescriptor>
Finds one dataset in logarithmic time.
Trait Implementations§
Source§impl Clone for DatasetCatalog
impl Clone for DatasetCatalog
Source§impl Debug for DatasetCatalog
impl Debug for DatasetCatalog
Auto Trait Implementations§
impl Freeze for DatasetCatalog
impl RefUnwindSafe for DatasetCatalog
impl Send for DatasetCatalog
impl Sync for DatasetCatalog
impl Unpin for DatasetCatalog
impl UnsafeUnpin for DatasetCatalog
impl UnwindSafe for DatasetCatalog
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> 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 more