pub struct ColumnCloseResult {
pub bytes_written: u64,
pub rows_written: u64,
pub metadata: ColumnChunkMetaData,
pub bloom_filter: Option<Sbbf>,
pub column_index: Option<ColumnIndexMetaData>,
pub offset_index: Option<OffsetIndexMetaData>,
}Expand description
Metadata for a column chunk of a Parquet file.
Note this structure is returned by ColumnWriter::close.
Fields§
§bytes_written: u64The total number of bytes written
rows_written: u64The total number of rows written
metadata: ColumnChunkMetaDataMetadata for this column chunk
bloom_filter: Option<Sbbf>Optional bloom filter for this column
column_index: Option<ColumnIndexMetaData>Optional column index, for filtering
offset_index: Option<OffsetIndexMetaData>Optional offset index, identifying page locations
Implementations§
Source§impl ColumnCloseResult
impl ColumnCloseResult
Sourcepub fn update_dictionary_location(self, dictionary_len: usize) -> Result<Self>
pub fn update_dictionary_location(self, dictionary_len: usize) -> Result<Self>
Rewrite the page offsets for a dictionary-first on-disk layout.
A writer that buffers the whole column chunk and splices it later (the
Arrow path) may accept the data pages before the dictionary page so the
data pages can stream straight through, then emit the dictionary page
first at splice. The offsets recorded during encoding therefore assume a
data-pages-first layout; call this with the serialized length of the
dictionary page to move it to offset 0 and shift every data page after
it. A dictionary_len of 0 (no dictionary page) leaves the result
unchanged.
Trait Implementations§
Source§impl Clone for ColumnCloseResult
impl Clone for ColumnCloseResult
Source§fn clone(&self) -> ColumnCloseResult
fn clone(&self) -> ColumnCloseResult
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more