pub struct NetworkLayout {
pub frame_count: u32,
pub feature_count: u32,
pub time_chunk: u32,
pub row_group_rows: u32,
pub time_chunks: u32,
pub feature_chunks: u32,
pub chunk_count: u32,
pub delta: bool,
pub index_location: IndexLocation,
pub fill_value: u8,
}Expand description
How the streamflow array is cut, held to the group: [frameCount, featureCount] in inner chunks of [6, rowGroupRows], one shard of the
whole array rounded up to whole inner chunks.
Fields§
§frame_count: u32§feature_count: u32§time_chunk: u32§row_group_rows: u32§time_chunks: u32§feature_chunks: u32§chunk_count: u32Inner chunks in the shard, and pairs in its index.
delta: bool§index_location: IndexLocation§fill_value: u8Implementations§
Source§impl NetworkLayout
impl NetworkLayout
Sourcepub fn index_length(&self) -> usize
pub fn index_length(&self) -> usize
The shard index’s byte length: one pair per inner chunk plus the CRC-32C.
Sourcepub fn chunk_cells(&self) -> usize
pub fn chunk_cells(&self) -> usize
Bytes of one decoded inner chunk.
Sourcepub fn frames_in_chunk(&self, time_chunk: u32) -> u32
pub fn frames_in_chunk(&self, time_chunk: u32) -> u32
The frames of time chunk t that lie on the axis.
Sourcepub fn features_in_chunk(&self, feature_chunk: u32) -> u32
pub fn features_in_chunk(&self, feature_chunk: u32) -> u32
The reaches of feature chunk g that lie inside the network.
Trait Implementations§
Source§impl Clone for NetworkLayout
impl Clone for NetworkLayout
impl Copy for NetworkLayout
Source§impl Debug for NetworkLayout
impl Debug for NetworkLayout
impl Eq for NetworkLayout
Source§impl PartialEq for NetworkLayout
impl PartialEq for NetworkLayout
impl StructuralPartialEq for NetworkLayout
Auto Trait Implementations§
impl Forget for NetworkLayout
impl Freeze for NetworkLayout
impl Move for NetworkLayout
impl RefUnwindSafe for NetworkLayout
impl Send for NetworkLayout
impl Sync for NetworkLayout
impl Unpin for NetworkLayout
impl UnsafeUnpin for NetworkLayout
impl UnwindSafe for NetworkLayout
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,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.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