Struct parquet_format_safe::BloomFilterHeader
source · pub struct BloomFilterHeader {
pub num_bytes: i32,
pub algorithm: BloomFilterAlgorithm,
pub hash: BloomFilterHash,
pub compression: BloomFilterCompression,
}
Expand description
Bloom filter header is stored at beginning of Bloom filter data of each column and followed by its bitset.
Fields§
§num_bytes: i32
The size of bitset in bytes *
algorithm: BloomFilterAlgorithm
The algorithm for setting bits. *
hash: BloomFilterHash
The hash function used for Bloom filter. *
compression: BloomFilterCompression
The compression used in the Bloom filter *
Implementations§
source§impl BloomFilterHeader
impl BloomFilterHeader
pub fn new(
num_bytes: i32,
algorithm: BloomFilterAlgorithm,
hash: BloomFilterHash,
compression: BloomFilterCompression
) -> BloomFilterHeader
pub fn read_from_in_protocol<T: TInputProtocol>(
i_prot: &mut T
) -> Result<BloomFilterHeader>
pub async fn stream_from_in_protocol<T: TInputStreamProtocol>(
i_prot: &mut T
) -> Result<BloomFilterHeader>
pub fn write_to_out_protocol<T: TOutputProtocol>(
&self,
o_prot: &mut T
) -> Result<usize>
pub async fn write_to_out_stream_protocol<T: TOutputStreamProtocol>(
&self,
o_prot: &mut T
) -> Result<usize>
Trait Implementations§
source§impl AsyncReadThrift for BloomFilterHeader
impl AsyncReadThrift for BloomFilterHeader
source§fn stream_from_in_protocol<'life0, 'async_trait, T>(
i_prot: &'life0 mut T
) -> Pin<Box<dyn Future<Output = Result<BloomFilterHeader>> + Send + 'async_trait>>where
T: 'async_trait + TInputStreamProtocol,
'life0: 'async_trait,
fn stream_from_in_protocol<'life0, 'async_trait, T>(
i_prot: &'life0 mut T
) -> Pin<Box<dyn Future<Output = Result<BloomFilterHeader>> + Send + 'async_trait>>where
T: 'async_trait + TInputStreamProtocol,
'life0: 'async_trait,
Available on crate feature
async
only.source§impl Clone for BloomFilterHeader
impl Clone for BloomFilterHeader
source§fn clone(&self) -> BloomFilterHeader
fn clone(&self) -> BloomFilterHeader
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for BloomFilterHeader
impl Debug for BloomFilterHeader
source§impl Hash for BloomFilterHeader
impl Hash for BloomFilterHeader
source§impl Ord for BloomFilterHeader
impl Ord for BloomFilterHeader
source§fn cmp(&self, other: &BloomFilterHeader) -> Ordering
fn cmp(&self, other: &BloomFilterHeader) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq<BloomFilterHeader> for BloomFilterHeader
impl PartialEq<BloomFilterHeader> for BloomFilterHeader
source§fn eq(&self, other: &BloomFilterHeader) -> bool
fn eq(&self, other: &BloomFilterHeader) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<BloomFilterHeader> for BloomFilterHeader
impl PartialOrd<BloomFilterHeader> for BloomFilterHeader
source§fn partial_cmp(&self, other: &BloomFilterHeader) -> Option<Ordering>
fn partial_cmp(&self, other: &BloomFilterHeader) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read more