pub struct ColumnarStore { /* private fields */ }Expand description
In-memory columnar store backed by Arrow RecordBatch.
Accumulates rows and converts them to columnar format on demand.
Implementations§
Source§impl ColumnarStore
impl ColumnarStore
Sourcepub fn append_row(&mut self, values: &[ScalarValue]) -> DbxResult<()>
pub fn append_row(&mut self, values: &[ScalarValue]) -> DbxResult<()>
Append a row of values. Must match the schema’s field count and types.
Sourcepub fn to_record_batch(&self) -> DbxResult<RecordBatch>
pub fn to_record_batch(&self) -> DbxResult<RecordBatch>
Convert accumulated rows into an Arrow RecordBatch (Parallelized).
Auto Trait Implementations§
impl Freeze for ColumnarStore
impl RefUnwindSafe for ColumnarStore
impl Send for ColumnarStore
impl Sync for ColumnarStore
impl Unpin for ColumnarStore
impl UnsafeUnpin for ColumnarStore
impl UnwindSafe for ColumnarStore
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
Mutably borrows from an owned value. Read more
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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>
Converts
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>
Converts
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