pub struct BufferedBatch {
pub table_id: u32,
pub columns: Vec<ColumnBuffer>,
pub row_count: usize,
pub row_ids: Vec<RowId>,
pub min_timestamp: i64,
pub max_timestamp: i64,
}Expand description
Data extracted from the buffer for segment writing.
Fields§
§table_id: u32§columns: Vec<ColumnBuffer>§row_count: usize§row_ids: Vec<RowId>§min_timestamp: i64§max_timestamp: i64Implementations§
Source§impl BufferedBatch
impl BufferedBatch
Sourcepub fn sort_by_timestamp(&mut self, ts_col_idx: Option<usize>)
pub fn sort_by_timestamp(&mut self, ts_col_idx: Option<usize>)
Sort all columns and row_ids by the timestamp column.
If ts_col_idx is None or there are <= 1 rows, this is a no-op.
Auto Trait Implementations§
impl Freeze for BufferedBatch
impl RefUnwindSafe for BufferedBatch
impl Send for BufferedBatch
impl Sync for BufferedBatch
impl Unpin for BufferedBatch
impl UnsafeUnpin for BufferedBatch
impl UnwindSafe for BufferedBatch
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> 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