pub struct SizeStatistics {
pub unencoded_byte_array_data_bytes: Option<i64>,
pub repetition_level_histogram: Option<Vec<i64>>,
pub definition_level_histogram: Option<Vec<i64>>,
}format module is no longer maintained, and will be removed in 59.0.0Expand description
A structure for capturing metadata for estimating the unencoded, uncompressed size of data written. This is useful for readers to estimate how much memory is needed to reconstruct data in their memory model and for fine grained filter pushdown on nested structures (the histograms contained in this structure can help determine the number of nulls at a particular nesting level and maximum length of lists).
Fieldsยง
ยงunencoded_byte_array_data_bytes: Option<i64>format module is no longer maintained, and will be removed in 59.0.0The number of physical bytes stored for BYTE_ARRAY data values assuming
no encoding. This is exclusive of the bytes needed to store the length of
each byte array. In other words, this field is equivalent to the (size of PLAIN-ENCODING the byte array values) - (4 bytes * number of values written). To determine unencoded sizes of other types readers can use
schema information multiplied by the number of non-null and null values.
The number of null/non-null values can be inferred from the histograms
below.
For example, if a column chunk is dictionary-encoded with dictionary [โaโ, โbcโ, โcdeโ], and a data page contains the indices [0, 0, 1, 2], then this value for that data page should be 7 (1 + 1 + 2 + 3).
This field should only be set for types that use BYTE_ARRAY as their physical type.
repetition_level_histogram: Option<Vec<i64>>format module is no longer maintained, and will be removed in 59.0.0When present, there is expected to be one element corresponding to each repetition (i.e. size=max repetition_level+1) where each element represents the number of times the repetition level was observed in the data.
This field may be omitted if max_repetition_level is 0 without loss of information.
definition_level_histogram: Option<Vec<i64>>format module is no longer maintained, and will be removed in 59.0.0Same as repetition_level_histogram except for definition levels.
This field may be omitted if max_definition_level is 0 or 1 without loss of information.
Implementationsยง
Sourceยงimpl SizeStatistics
impl SizeStatistics
pub fn new<F1, F2, F3>( unencoded_byte_array_data_bytes: F1, repetition_level_histogram: F2, definition_level_histogram: F3, ) -> SizeStatistics
format module is no longer maintained, and will be removed in 59.0.0Trait Implementationsยง
Sourceยงimpl Clone for SizeStatistics
impl Clone for SizeStatistics
Sourceยงfn clone(&self) -> SizeStatistics
fn clone(&self) -> SizeStatistics
1.0.0 ยท Sourceยงfn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSourceยงimpl Debug for SizeStatistics
impl Debug for SizeStatistics
Sourceยงimpl Default for SizeStatistics
impl Default for SizeStatistics
Sourceยงfn default() -> SizeStatistics
fn default() -> SizeStatistics
Sourceยงimpl Hash for SizeStatistics
impl Hash for SizeStatistics
Sourceยงimpl Ord for SizeStatistics
impl Ord for SizeStatistics
Sourceยงfn cmp(&self, other: &SizeStatistics) -> Ordering
fn cmp(&self, other: &SizeStatistics) -> Ordering
1.21.0 ยท Sourceยงfn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Sourceยงimpl PartialEq for SizeStatistics
impl PartialEq for SizeStatistics
Sourceยงimpl PartialOrd for SizeStatistics
impl PartialOrd for SizeStatistics
Sourceยงimpl TSerializable for SizeStatistics
impl TSerializable for SizeStatistics
Sourceยงfn read_from_in_protocol<T: TInputProtocol>(
i_prot: &mut T,
) -> Result<SizeStatistics>
fn read_from_in_protocol<T: TInputProtocol>( i_prot: &mut T, ) -> Result<SizeStatistics>
Sourceยงfn write_to_out_protocol<T: TOutputProtocol>(
&self,
o_prot: &mut T,
) -> Result<()>
fn write_to_out_protocol<T: TOutputProtocol>( &self, o_prot: &mut T, ) -> Result<()>
impl Eq for SizeStatistics
impl StructuralPartialEq for SizeStatistics
Auto Trait Implementationsยง
impl Freeze for SizeStatistics
impl RefUnwindSafe for SizeStatistics
impl Send for SizeStatistics
impl Sync for SizeStatistics
impl Unpin for SizeStatistics
impl UnwindSafe for SizeStatistics
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
Sourceยงimpl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
ยงimpl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
ยง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
ยง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
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>
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