pub struct ColumnarResultSet { /* private fields */ }Expand description
列式结果集
数据按列连续存储:columns[i] 是第 i 列的所有行值。
对单列批量遍历(如聚合、过滤)缓存友好。
Implementations§
Source§impl ColumnarResultSet
impl ColumnarResultSet
pub fn new(schema: ColumnarSchema) -> Self
Sourcepub fn from_row_data(rows: &[RowData], schema: ColumnarSchema) -> Self
pub fn from_row_data(rows: &[RowData], schema: ColumnarSchema) -> Self
从行式数据转换为列式
Sourcepub fn to_row_data(&self) -> Vec<RowData>
pub fn to_row_data(&self) -> Vec<RowData>
转换回行式数据
Sourcepub fn column_count(&self) -> usize
pub fn column_count(&self) -> usize
列数
Sourcepub fn schema(&self) -> &ColumnarSchema
pub fn schema(&self) -> &ColumnarSchema
schema 引用
Auto Trait Implementations§
impl Freeze for ColumnarResultSet
impl RefUnwindSafe for ColumnarResultSet
impl Send for ColumnarResultSet
impl Sync for ColumnarResultSet
impl Unpin for ColumnarResultSet
impl UnsafeUnpin for ColumnarResultSet
impl UnwindSafe for ColumnarResultSet
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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