Struct parquet_format_safe::ColumnChunk
source · [−]pub struct ColumnChunk {
pub file_path: Option<String>,
pub file_offset: i64,
pub meta_data: Option<ColumnMetaData>,
pub offset_index_offset: Option<i64>,
pub offset_index_length: Option<i32>,
pub column_index_offset: Option<i64>,
pub column_index_length: Option<i32>,
pub crypto_metadata: Option<ColumnCryptoMetaData>,
pub encrypted_column_metadata: Option<Vec<u8>>,
}
Fields
file_path: Option<String>
File where column data is stored. If not set, assumed to be same file as metadata. This path is relative to the current file.
file_offset: i64
Byte offset in file_path to the ColumnMetaData *
meta_data: Option<ColumnMetaData>
Column metadata for this chunk. This is the same content as what is at file_path/file_offset. Having it here has it replicated in the file metadata.
offset_index_offset: Option<i64>
File offset of ColumnChunk’s OffsetIndex *
offset_index_length: Option<i32>
Size of ColumnChunk’s OffsetIndex, in bytes *
column_index_offset: Option<i64>
File offset of ColumnChunk’s ColumnIndex *
column_index_length: Option<i32>
Size of ColumnChunk’s ColumnIndex, in bytes *
crypto_metadata: Option<ColumnCryptoMetaData>
Crypto metadata of encrypted columns *
encrypted_column_metadata: Option<Vec<u8>>
Encrypted column metadata for this chunk *
Implementations
sourceimpl ColumnChunk
impl ColumnChunk
pub fn new<F1, F3, F4, F5, F6, F7, F8, F9>(
file_path: F1,
file_offset: i64,
meta_data: F3,
offset_index_offset: F4,
offset_index_length: F5,
column_index_offset: F6,
column_index_length: F7,
crypto_metadata: F8,
encrypted_column_metadata: F9
) -> ColumnChunk where
F1: Into<Option<String>>,
F3: Into<Option<ColumnMetaData>>,
F4: Into<Option<i64>>,
F5: Into<Option<i32>>,
F6: Into<Option<i64>>,
F7: Into<Option<i32>>,
F8: Into<Option<ColumnCryptoMetaData>>,
F9: Into<Option<Vec<u8>>>,
pub fn read_from_in_protocol<T: TInputProtocol>(
i_prot: &mut T
) -> Result<ColumnChunk>
pub fn write_to_out_protocol<T: TOutputProtocol>(
&self,
o_prot: &mut T
) -> Result<usize>
Trait Implementations
sourceimpl Clone for ColumnChunk
impl Clone for ColumnChunk
sourcefn clone(&self) -> ColumnChunk
fn clone(&self) -> ColumnChunk
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for ColumnChunk
impl Debug for ColumnChunk
sourceimpl Hash for ColumnChunk
impl Hash for ColumnChunk
sourceimpl Ord for ColumnChunk
impl Ord for ColumnChunk
sourcefn cmp(&self, other: &ColumnChunk) -> Ordering
fn cmp(&self, other: &ColumnChunk) -> Ordering
1.21.0 · sourcefn max(self, other: Self) -> Self
fn max(self, other: Self) -> Self
Compares and returns the maximum of two values. Read more
1.21.0 · sourcefn min(self, other: Self) -> Self
fn min(self, other: Self) -> Self
Compares and returns the minimum of two values. Read more
1.50.0 · sourcefn clamp(self, min: Self, max: Self) -> Self where
Self: PartialOrd<Self>,
fn clamp(self, min: Self, max: Self) -> Self where
Self: PartialOrd<Self>,
Restrict a value to a certain interval. Read more
sourceimpl PartialEq<ColumnChunk> for ColumnChunk
impl PartialEq<ColumnChunk> for ColumnChunk
sourcefn eq(&self, other: &ColumnChunk) -> bool
fn eq(&self, other: &ColumnChunk) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &ColumnChunk) -> bool
fn ne(&self, other: &ColumnChunk) -> bool
This method tests for !=
.
sourceimpl PartialOrd<ColumnChunk> for ColumnChunk
impl PartialOrd<ColumnChunk> for ColumnChunk
sourcefn partial_cmp(&self, other: &ColumnChunk) -> Option<Ordering>
fn partial_cmp(&self, other: &ColumnChunk) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
1.0.0 · sourcefn 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
sourceimpl ReadThrift for ColumnChunk
impl ReadThrift for ColumnChunk
fn read_from_in_protocol<T: TInputProtocol>(
i_prot: &mut T
) -> Result<ColumnChunk>
impl Eq for ColumnChunk
impl StructuralEq for ColumnChunk
impl StructuralPartialEq for ColumnChunk
Auto Trait Implementations
impl RefUnwindSafe for ColumnChunk
impl Send for ColumnChunk
impl Sync for ColumnChunk
impl Unpin for ColumnChunk
impl UnwindSafe for ColumnChunk
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more