pub struct Merged<F, D, Txn> { /* private fields */ }
Expand description
A merge of multiple table indexes
Implementations
sourceimpl<F: File<Node>, D: Dir, Txn: Transaction<D>> Merged<F, D, Txn>
impl<F: File<Node>, D: Dir, Txn: Transaction<D>> Merged<F, D, Txn>
sourcepub fn new(
left: MergeSource<F, D, Txn>,
right: IndexSlice<F, D, Txn>
) -> TCResult<Self>
pub fn new(
left: MergeSource<F, D, Txn>,
right: IndexSlice<F, D, Txn>
) -> TCResult<Self>
Create a new merge of the given IndexSlice
with the given MergeSource
.
sourcepub async fn slice_rows<'a>(
self,
txn_id: TxnId,
bounds: Bounds,
reverse: bool
) -> TCResult<TCBoxTryStream<'a, Vec<Value>>>
pub async fn slice_rows<'a>(
self,
txn_id: TxnId,
bounds: Bounds,
reverse: bool
) -> TCResult<TCBoxTryStream<'a, Vec<Value>>>
Stream the rows within the given Bounds
of this merge
Trait Implementations
sourceimpl<F: File<Node>, D: Dir, Txn: Transaction<D>> TableInstance for Merged<F, D, Txn>
impl<F: File<Node>, D: Dir, Txn: Transaction<D>> TableInstance for Merged<F, D, Txn>
sourceimpl<F: File<Node>, D: Dir, Txn: Transaction<D>> TableOrder for Merged<F, D, Txn>
impl<F: File<Node>, D: Dir, Txn: Transaction<D>> TableOrder for Merged<F, D, Txn>
sourceimpl<F: File<Node>, D: Dir, Txn: Transaction<D>> TableSlice for Merged<F, D, Txn>
impl<F: File<Node>, D: Dir, Txn: Transaction<D>> TableSlice for Merged<F, D, Txn>
sourceimpl<F: File<Node>, D: Dir, Txn: Transaction<D>> TableStream for Merged<F, D, Txn>
impl<F: File<Node>, D: Dir, Txn: Transaction<D>> TableStream for Merged<F, D, Txn>
type Limit = Limited<F, D, Txn>
type Selection = Selection<F, D, Txn, Merged<F, D, Txn>>
sourcefn select(self, columns: Vec<Id>) -> TCResult<Self::Selection>
fn select(self, columns: Vec<Id>) -> TCResult<Self::Selection>
Limit the columns returned by rows
.
Auto Trait Implementations
impl<F, D, Txn> !RefUnwindSafe for Merged<F, D, Txn>
impl<F, D, Txn> Send for Merged<F, D, Txn> where
D: Send + Sync,
F: Send + Sync,
Txn: Send + Sync,
impl<F, D, Txn> Sync for Merged<F, D, Txn> where
D: Send + Sync,
F: Send + Sync,
Txn: Send + Sync,
impl<F, D, Txn> Unpin for Merged<F, D, Txn>
impl<F, D, Txn> !UnwindSafe for Merged<F, D, Txn>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<F> Match for F
impl<F> Match for F
sourcefn matches<T>(&self) -> bool where
T: TryCastFrom<Self>,
fn matches<T>(&self) -> bool where
T: TryCastFrom<Self>,
Returns true
if self
can be cast into the target type T
.
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more
sourceimpl<F, T> TryCastFrom<F> for T where
T: CastFrom<F>,
impl<F, T> TryCastFrom<F> for T where
T: CastFrom<F>,
sourcefn can_cast_from(&F) -> bool
fn can_cast_from(&F) -> bool
Test if value
can be cast into Self
.
sourcefn opt_cast_from(f: F) -> Option<T>
fn opt_cast_from(f: F) -> Option<T>
Returns Some(Self)
if the source value can be cast into Self
, otherwise None
.
sourcefn try_cast_from<Err, OnErr>(value: T, on_err: OnErr) -> Result<Self, Err> where
OnErr: FnOnce(&T) -> Err,
fn try_cast_from<Err, OnErr>(value: T, on_err: OnErr) -> Result<Self, Err> where
OnErr: FnOnce(&T) -> Err,
Returns Ok(Self)
if the source value can be cast into Self
, otherwise calls on_err
.
sourceimpl<F, T> TryCastInto<T> for F where
T: TryCastFrom<F>,
impl<F, T> TryCastInto<T> for F where
T: TryCastFrom<F>,
sourcefn can_cast_into(&self) -> bool
fn can_cast_into(&self) -> bool
Test if self
can be cast into T
.
sourcefn opt_cast_into(self) -> Option<T>
fn opt_cast_into(self) -> Option<T>
Returns Some(T)
if self
can be cast into T
, otherwise None
.
sourcefn try_cast_into<Err, OnErr>(self, on_err: OnErr) -> Result<T, Err> where
OnErr: FnOnce(&Self) -> Err,
fn try_cast_into<Err, OnErr>(self, on_err: OnErr) -> Result<T, Err> where
OnErr: FnOnce(&Self) -> Err,
Returns Ok(T)
if self
can be cast into T
, otherwise calls on_err
.