pub enum ScanOrder {
Storage,
TimestampAscending,
TimestampDescending,
Attribute {
column: ColumnId,
direction: ScanDirection,
},
}Expand description
Deterministic ordering used by Store::scan_documents.
Variants§
Storage
Immutable segments in snapshot order and then the active segment, with ascending row numbers inside every source.
TimestampAscending
Ascending timestamp with ascending document id as the tie breaker.
TimestampDescending
Descending timestamp with ascending document id as the tie breaker.
Attribute
A declared U64, I64 or F64 user attribute in direction, with
ascending document id as the tie breaker. F64 compares numerically
and -0.0 equals +0.0. A row whose value is missing or NaN has no
orderable value and sorts after every orderable row in both
directions.
Fields
§
direction: ScanDirectionDirection applied to orderable values.
Trait Implementations§
impl Copy for ScanOrder
impl Eq for ScanOrder
impl StructuralPartialEq for ScanOrder
Auto Trait Implementations§
impl Freeze for ScanOrder
impl RefUnwindSafe for ScanOrder
impl Send for ScanOrder
impl Sync for ScanOrder
impl Unpin for ScanOrder
impl UnsafeUnpin for ScanOrder
impl UnwindSafe for ScanOrder
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