pub struct Delta<D> {
pub inner: D,
}Fields§
§inner: DImplementations§
Source§impl Delta<DeltaImmutable>
impl Delta<DeltaImmutable>
Source§impl Delta<DeltaMutable>
impl Delta<DeltaMutable>
pub fn new( codec: Arc<dyn CompressionCodec>, block_target_size: usize, delta_index: u32, ) -> Self
pub fn define_array( &mut self, name: impl Into<String>, dtype: DType, shape: Vec<usize>, dimension_names: Vec<String>, chunk_shape: Option<Vec<usize>>, fill_value: Option<FillValue>, ) -> Result<()>
pub fn array_meta(&self, name: &str) -> Option<&ArrayMeta>
Sourcepub fn write_raw_chunk(
&mut self,
name: &str,
coord: Vec<u32>,
raw: &[u8],
) -> Result<()>
pub fn write_raw_chunk( &mut self, name: &str, coord: Vec<u32>, raw: &[u8], ) -> Result<()>
Allocates chunk bytes and records the chunk address in the array meta.
Sourcepub fn array_meta_mut(&mut self, name: &str) -> Option<&mut ArrayMeta>
pub fn array_meta_mut(&mut self, name: &str) -> Option<&mut ArrayMeta>
Returns a mutable reference to the ArrayMeta for name, if present.
Sourcepub fn upsert_array_meta(&mut self, meta: ArrayMeta)
pub fn upsert_array_meta(&mut self, meta: ArrayMeta)
Inserts or replaces the ArrayMeta for meta.name.
Sourcepub fn mark_deleted(&mut self, meta: ArrayMeta)
pub fn mark_deleted(&mut self, meta: ArrayMeta)
Stamps meta as deleted, clears its chunks, and upserts it.
Sourcepub fn intern_attr_key(&mut self, key: &str) -> usize
pub fn intern_attr_key(&mut self, key: &str) -> usize
Interns key into the attribute key dictionary, returning its index.
Sourcepub fn intern_attr_value(&mut self, value: AttributeValue) -> usize
pub fn intern_attr_value(&mut self, value: AttributeValue) -> usize
Interns value into the attribute value dictionary, returning its index.
Auto Trait Implementations§
impl<D> Freeze for Delta<D>where
D: Freeze,
impl<D> RefUnwindSafe for Delta<D>where
D: RefUnwindSafe,
impl<D> Send for Delta<D>where
D: Send,
impl<D> Sync for Delta<D>where
D: Sync,
impl<D> Unpin for Delta<D>where
D: Unpin,
impl<D> UnsafeUnpin for Delta<D>where
D: UnsafeUnpin,
impl<D> UnwindSafe for Delta<D>where
D: UnwindSafe,
Blanket Implementations§
Source§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
Source§type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
Source§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata,
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata, ) -> <T as Pointee>::Metadata
Converts some archived metadata to the pointer metadata for itself.
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> LayoutRaw for T
impl<T> LayoutRaw for T
Source§fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
Returns the layout of the type.
Source§impl<T, N1, N2> Niching<NichedOption<T, N1>> for N2
impl<T, N1, N2> Niching<NichedOption<T, N1>> for N2
Source§unsafe fn is_niched(niched: *const NichedOption<T, N1>) -> bool
unsafe fn is_niched(niched: *const NichedOption<T, N1>) -> bool
Returns whether the given value has been niched. Read more
Source§fn resolve_niched(out: Place<NichedOption<T, N1>>)
fn resolve_niched(out: Place<NichedOption<T, N1>>)
Writes data to
out indicating that a T is niched.