pub struct DataOverlayFile {
pub data_file: DataFile,
pub coverage: OverlayCoverage,
pub committed_version: u64,
}Expand description
An overlay file supplies new values for a subset of (physical offset, field)
cells within a fragment, without rewriting the fragment’s base data files. See
the module documentation for the coverage, rank, and versioning rules.
Fields§
§data_file: DataFileThe data file storing the overlay’s new cell values.
coverage: OverlayCoverageWhich cells this overlay provides values for.
committed_version: u64The dataset version at which this overlay became effective (the version of
the commit that introduced it, stamped at commit time and re-stamped on
retry). Higher wins when two overlays cover the same (offset, field).
Implementations§
Source§impl DataOverlayFile
impl DataOverlayFile
Sourcepub fn coverage_for_field(&self, field_pos: usize) -> Result<Arc<RoaringBitmap>>
pub fn coverage_for_field(&self, field_pos: usize) -> Result<Arc<RoaringBitmap>>
The parsed coverage bitmap that applies to the field stored at
field_pos within data_file.fields.
For a dense overlay the same shared bitmap is returned for every field;
for a sparse overlay the per-field bitmap at field_pos is returned. The
bitmap is already parsed, so this is a cheap Arc clone.
Trait Implementations§
Source§impl Clone for DataOverlayFile
impl Clone for DataOverlayFile
Source§fn clone(&self) -> DataOverlayFile
fn clone(&self) -> DataOverlayFile
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for DataOverlayFile
impl Debug for DataOverlayFile
Source§impl DeepSizeOf for DataOverlayFile
impl DeepSizeOf for DataOverlayFile
fn deep_size_of_children(&self, __context: &mut Context) -> usize
fn deep_size_of(&self) -> usize
Source§impl<'de> Deserialize<'de> for DataOverlayFile
impl<'de> Deserialize<'de> for DataOverlayFile
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
impl Eq for DataOverlayFile
Source§impl From<&DataOverlayFile> for DataOverlayFile
impl From<&DataOverlayFile> for DataOverlayFile
Source§fn from(overlay: &DataOverlayFile) -> Self
fn from(overlay: &DataOverlayFile) -> Self
Source§impl PartialEq for DataOverlayFile
impl PartialEq for DataOverlayFile
Source§impl Serialize for DataOverlayFile
impl Serialize for DataOverlayFile
impl StructuralPartialEq for DataOverlayFile
Source§impl TryFrom<DataOverlayFile> for DataOverlayFile
impl TryFrom<DataOverlayFile> for DataOverlayFile
Auto Trait Implementations§
impl !Freeze for DataOverlayFile
impl RefUnwindSafe for DataOverlayFile
impl Send for DataOverlayFile
impl Sync for DataOverlayFile
impl Unpin for DataOverlayFile
impl UnsafeUnpin for DataOverlayFile
impl UnwindSafe for DataOverlayFile
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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
key and return true if they are equal.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>
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>
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