Struct tantivy_sstable::StreamerBuilder
source · pub struct StreamerBuilder<'a, TSSTable, A = AlwaysMatch>{ /* private fields */ }
Expand description
StreamerBuilder
is a helper object used to define
a range of terms that should be streamed.
Implementations§
source§impl<'a, TSSTable, A> StreamerBuilder<'a, TSSTable, A>
impl<'a, TSSTable, A> StreamerBuilder<'a, TSSTable, A>
sourcepub fn ge<T: AsRef<[u8]>>(self, bound: T) -> Self
pub fn ge<T: AsRef<[u8]>>(self, bound: T) -> Self
Limit the range to terms greater or equal to the bound
sourcepub fn gt<T: AsRef<[u8]>>(self, bound: T) -> Self
pub fn gt<T: AsRef<[u8]>>(self, bound: T) -> Self
Limit the range to terms strictly greater than the bound
sourcepub fn le<T: AsRef<[u8]>>(self, bound: T) -> Self
pub fn le<T: AsRef<[u8]>>(self, bound: T) -> Self
Limit the range to terms lesser or equal to the bound
sourcepub fn lt<T: AsRef<[u8]>>(self, bound: T) -> Self
pub fn lt<T: AsRef<[u8]>>(self, bound: T) -> Self
Limit the range to terms lesser or equal to the bound
sourcepub fn limit(self, limit: u64) -> Self
pub fn limit(self, limit: u64) -> Self
Load no more data than what’s required to to get limit
matching entries.
The resulting Streamer
can still return marginaly
more than limit
elements.
sourcepub async fn into_stream_async(self) -> Result<Streamer<'a, TSSTable, A>>
pub async fn into_stream_async(self) -> Result<Streamer<'a, TSSTable, A>>
See into_stream(..)
sourcepub fn into_stream(self) -> Result<Streamer<'a, TSSTable, A>>
pub fn into_stream(self) -> Result<Streamer<'a, TSSTable, A>>
Creates the stream corresponding to the range
of terms defined using the StreamerBuilder
.
Auto Trait Implementations§
impl<'a, TSSTable, A> Freeze for StreamerBuilder<'a, TSSTable, A>
impl<'a, TSSTable, A = AlwaysMatch> !RefUnwindSafe for StreamerBuilder<'a, TSSTable, A>
impl<'a, TSSTable, A> Send for StreamerBuilder<'a, TSSTable, A>
impl<'a, TSSTable, A> Sync for StreamerBuilder<'a, TSSTable, A>
impl<'a, TSSTable, A> Unpin for StreamerBuilder<'a, TSSTable, A>
impl<'a, TSSTable, A = AlwaysMatch> !UnwindSafe for StreamerBuilder<'a, TSSTable, A>
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