pub struct Query {
pub key_filter: KeyFilter,
pub time_range: Option<(i64, i64)>,
}Expand description
A query over the LSM engine, specifying key filtering and optional time range.
Construct one of the convenience methods:
Fields§
§key_filter: KeyFilterHow to match keys.
time_range: Option<(i64, i64)>Optional inclusive time range (start_micros, end_micros).
Implementations§
Source§impl Query
impl Query
pub fn prefix(key: impl Into<String>) -> Self
pub fn key_range(start: impl Into<String>, end: impl Into<String>) -> Self
pub fn time_range(start: i64, end: i64) -> Self
pub fn prefix_time_range(key: impl Into<String>, start: i64, end: i64) -> Self
pub fn key_time_range( start_key: impl Into<String>, end_key: impl Into<String>, start: i64, end: i64, ) -> Self
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Query
impl RefUnwindSafe for Query
impl Send for Query
impl Sync for Query
impl Unpin for Query
impl UnsafeUnpin for Query
impl UnwindSafe for Query
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