struct ColumnProperties {
encoding: Option<Encoding>,
codec: Option<Compression>,
dictionary_page_size_limit: Option<usize>,
dictionary_enabled: Option<bool>,
statistics_enabled: Option<EnabledStatistics>,
write_page_header_statistics: Option<bool>,
bloom_filter_properties: Option<BloomFilterProperties>,
}Expand description
Container for column properties that can be changed as part of writer.
If a field is None, it means that no specific value has been set for this column,
so some subsequent or default value must be used.
Fields§
§encoding: Option<Encoding>§codec: Option<Compression>§dictionary_page_size_limit: Option<usize>§dictionary_enabled: Option<bool>§statistics_enabled: Option<EnabledStatistics>§write_page_header_statistics: Option<bool>§bloom_filter_properties: Option<BloomFilterProperties>bloom filter related properties
Implementations§
Source§impl ColumnProperties
impl ColumnProperties
Sourcefn set_encoding(&mut self, value: Encoding)
fn set_encoding(&mut self, value: Encoding)
Sets encoding for this column.
If dictionary is not enabled, this is treated as a primary encoding for a column. In case when dictionary is enabled for a column, this value is considered to be a fallback encoding.
Panics if user tries to set dictionary encoding here, regardless of dictionary
encoding flag being set. Use set_dictionary_enabled method to enable dictionary
for a column.
Sourcefn set_compression(&mut self, value: Compression)
fn set_compression(&mut self, value: Compression)
Sets compression codec for this column.
Sourcefn set_dictionary_enabled(&mut self, enabled: bool)
fn set_dictionary_enabled(&mut self, enabled: bool)
Sets whether dictionary encoding is enabled for this column.
Sourcefn set_dictionary_page_size_limit(&mut self, value: usize)
fn set_dictionary_page_size_limit(&mut self, value: usize)
Sets dictionary page size limit for this column.
Sourcefn set_statistics_enabled(&mut self, enabled: EnabledStatistics)
fn set_statistics_enabled(&mut self, enabled: EnabledStatistics)
Sets the statistics level for this column.
Sourcefn set_write_page_header_statistics(&mut self, enabled: bool)
fn set_write_page_header_statistics(&mut self, enabled: bool)
Sets whether to write statistics in the page header for this column.
Sourcefn set_bloom_filter_enabled(&mut self, value: bool)
fn set_bloom_filter_enabled(&mut self, value: bool)
If value is true, sets bloom filter properties to default values if not previously set,
otherwise it is a no-op.
If value is false, resets bloom filter properties to None.
Sourcefn set_bloom_filter_fpp(&mut self, value: f64)
fn set_bloom_filter_fpp(&mut self, value: f64)
Sets the false positive probability for bloom filter for this column, and implicitly enables bloom filter if not previously enabled.
§Panics
Panics if the value is not between 0 and 1 exclusive
Sourcefn set_bloom_filter_ndv(&mut self, value: u64)
fn set_bloom_filter_ndv(&mut self, value: u64)
Sets the number of distinct (unique) values for bloom filter for this column, and implicitly enables bloom filter if not previously enabled.
Sourcefn compression(&self) -> Option<Compression>
fn compression(&self) -> Option<Compression>
Returns optional compression codec for this column.
Sourcefn dictionary_enabled(&self) -> Option<bool>
fn dictionary_enabled(&self) -> Option<bool>
Returns Some(true) if dictionary encoding is enabled for this column, if
disabled then returns Some(false). If result is None, then no setting has
been provided.
Sourcefn dictionary_page_size_limit(&self) -> Option<usize>
fn dictionary_page_size_limit(&self) -> Option<usize>
Returns optional dictionary page size limit for this column.
Sourcefn statistics_enabled(&self) -> Option<EnabledStatistics>
fn statistics_enabled(&self) -> Option<EnabledStatistics>
Returns optional statistics level requested for this column. If result is None,
then no setting has been provided.
Sourcefn write_page_header_statistics(&self) -> Option<bool>
fn write_page_header_statistics(&self) -> Option<bool>
Returns Some(true) if Statistics are to be written to the page header for this
column.
Sourcefn bloom_filter_properties(&self) -> Option<&BloomFilterProperties>
fn bloom_filter_properties(&self) -> Option<&BloomFilterProperties>
Returns the bloom filter properties, or None if not enabled
Trait Implementations§
Source§impl Clone for ColumnProperties
impl Clone for ColumnProperties
Source§fn clone(&self) -> ColumnProperties
fn clone(&self) -> ColumnProperties
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ColumnProperties
impl Debug for ColumnProperties
Source§impl Default for ColumnProperties
impl Default for ColumnProperties
Source§fn default() -> ColumnProperties
fn default() -> ColumnProperties
Source§impl PartialEq for ColumnProperties
impl PartialEq for ColumnProperties
impl StructuralPartialEq for ColumnProperties
Auto Trait Implementations§
impl Freeze for ColumnProperties
impl RefUnwindSafe for ColumnProperties
impl Send for ColumnProperties
impl Sync for ColumnProperties
impl Unpin for ColumnProperties
impl UnwindSafe for ColumnProperties
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,
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