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
Deprecated: Byte offset in file_path to the ColumnMetaData
Past use of this field has been inconsistent, with some implementations using it to point to the ColumnMetaData and some using it to point to the first page in the column chunk. In many cases, the ColumnMetaData at this location is wrong. This field is now deprecated and should not be used. Writers should set this field to 0 if no ColumnMetaData has been written outside the footer.
meta_data: Option<ColumnMetaData>
Column metadata for this chunk. Some writers may also replicate this at the location pointed to by file_path/file_offset. Note: while marked as optional, this field is in fact required by most major Parquet implementations. As such, writers MUST populate this field.
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§
Source§impl 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
Trait Implementations§
Source§impl Clone for ColumnChunk
impl Clone for ColumnChunk
Source§fn clone(&self) -> ColumnChunk
fn clone(&self) -> ColumnChunk
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for ColumnChunk
impl Debug for ColumnChunk
Source§impl Hash for ColumnChunk
impl Hash for ColumnChunk
Source§impl Ord for ColumnChunk
impl Ord for ColumnChunk
Source§fn cmp(&self, other: &ColumnChunk) -> Ordering
fn cmp(&self, other: &ColumnChunk) -> 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 ColumnChunk
impl PartialEq for ColumnChunk
Source§impl PartialOrd for ColumnChunk
impl PartialOrd for ColumnChunk
Source§impl TSerializable for ColumnChunk
impl TSerializable for ColumnChunk
Source§fn read_from_in_protocol<T: TInputProtocol>(
i_prot: &mut T,
) -> Result<ColumnChunk>
fn read_from_in_protocol<T: TInputProtocol>( i_prot: &mut T, ) -> Result<ColumnChunk>
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 ColumnChunk
impl StructuralPartialEq for ColumnChunk
Auto Trait Implementations§
impl Freeze for ColumnChunk
impl RefUnwindSafe for ColumnChunk
impl Send for ColumnChunk
impl Sync for ColumnChunk
impl Unpin for ColumnChunk
impl UnwindSafe for ColumnChunk
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)§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
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