Skip to main content

ArrowColumnChunkData

Struct ArrowColumnChunkData 

Source
struct ArrowColumnChunkData {
    length: usize,
    store: Box<dyn PageStore>,
    keys: Vec<PageKey>,
    dictionary_keys: Vec<PageKey>,
    dictionary_len: usize,
}
Expand description

A single column chunk produced by ArrowColumnWriter.

Holds the serialized page blobs (each page’s header ‖ compressed data, in write order) in a PageStore, plus the handles needed to read them back, in order, when the chunk is spliced into the output file.

Fields§

§length: usize§store: Box<dyn PageStore>§keys: Vec<PageKey>§dictionary_keys: Vec<PageKey>

Handles to the dictionary page’s blobs (header then data) in the store.

A dictionary page is produced at most once and bounded by dict_page_size_limit, but it must be written first in the chunk even though the data pages reach the writer before it (see PageWriter::defers_dictionary_ordering). Its header and data are put into the store like any other page — which keeps the store uniform, and lets an oversized dictionary page spill — and their handles are held apart so they can be emitted ahead of the data pages at splice. Empty for non-dictionary columns.

§dictionary_len: usize

Serialized length of the dictionary page (0 if there is none), recorded so the data pages can be shifted past it when offsets are rewritten to a dictionary-first layout at splice.

Implementations§

Source§

impl ArrowColumnChunkData

Source

fn new(store: Box<dyn PageStore>) -> Self

Source

fn push(&mut self, value: Bytes) -> Result<()>

Append a data-page blob to the store, recording its handle in write order.

Source

fn push_dictionary(&mut self, value: Bytes) -> Result<()>

Store a dictionary-page blob (header or data) in the page store, recording its handle (emitted first at splice) and accumulating its serialized length.

Source

fn memory_size(&self) -> usize

Bytes this chunk currently holds on the heap: whatever the store keeps resident (zero for a spilling backend).

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<T> Ungil for T
where T: Send,

§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V