pub struct ColumnarBatch { /* private fields */ }Implementations§
Source§impl ColumnarBatch
impl ColumnarBatch
pub fn try_new( schema: Arc<BindingSchema>, columns: Vec<Arc<ColumnVector>>, ) -> Result<Self>
pub fn row_count(&self) -> usize
pub fn selected_count(&self) -> usize
pub fn schema(&self) -> &BindingSchema
pub fn column(&self, slot: SlotId) -> Option<&Arc<ColumnVector>>
pub fn value_ref(&self, slot: SlotId, row: usize) -> Option<ValueRef<'_>>
pub fn selection(&self) -> &Selection
pub fn rows(&self) -> impl Iterator<Item = ColumnarRowRef<'_>>
pub fn with_selection(self, selection: Selection) -> Result<Self>
pub fn project(&self, slots: &[SlotId]) -> Result<Self>
pub fn filter_numeric( &self, slot: SlotId, predicate: NumericPredicate, expected: NumericLiteral, ) -> Result<Self>
pub fn filter_boolean(&self, slot: SlotId, expected: bool) -> Result<Self>
pub fn limit(&self, offset: usize, max_rows: usize) -> Self
pub fn count_selected(&self) -> usize
pub fn count_valid(&self, slot: SlotId) -> Result<usize>
pub fn sum_int64(&self, slot: SlotId) -> Result<Option<i64>>
pub fn estimated_memory_bytes(&self) -> usize
Trait Implementations§
Source§impl Clone for ColumnarBatch
impl Clone for ColumnarBatch
Source§impl Debug for ColumnarBatch
impl Debug for ColumnarBatch
Source§impl PartialEq for ColumnarBatch
impl PartialEq for ColumnarBatch
impl StructuralPartialEq for ColumnarBatch
Auto Trait Implementations§
impl Freeze for ColumnarBatch
impl RefUnwindSafe for ColumnarBatch
impl Send for ColumnarBatch
impl Sync for ColumnarBatch
impl Unpin for ColumnarBatch
impl UnsafeUnpin for ColumnarBatch
impl UnwindSafe for ColumnarBatch
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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