pub struct Merged<F, D, Txn> { /* private fields */ }Expand description
A merge of multiple table indexes
Implementations§
source§impl<F, D, Txn> Merged<F, D, Txn>where
F: File<Key = NodeId, Block = Node>,
D: Dir,
Txn: Transaction<D>,
impl<F, D, Txn> Merged<F, D, Txn>where
F: File<Key = NodeId, Block = Node>,
D: Dir,
Txn: Transaction<D>,
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§
source§impl<F, D, Txn> TableInstance for Merged<F, D, Txn>where
F: File<Key = NodeId, Block = Node>,
D: Dir,
Txn: Transaction<D>,
impl<F, D, Txn> TableInstance for Merged<F, D, Txn>where
F: File<Key = NodeId, Block = Node>,
D: Dir,
Txn: Transaction<D>,
source§impl<F, D, Txn> TableOrder for Merged<F, D, Txn>where
F: File<Key = NodeId, Block = Node>,
D: Dir,
Txn: Transaction<D>,
impl<F, D, Txn> TableOrder for Merged<F, D, Txn>where
F: File<Key = NodeId, Block = Node>,
D: Dir,
Txn: Transaction<D>,
source§impl<F, D, Txn> TableSlice for Merged<F, D, Txn>where
F: File<Key = NodeId, Block = Node>,
D: Dir,
Txn: Transaction<D>,
impl<F, D, Txn> TableSlice for Merged<F, D, Txn>where
F: File<Key = NodeId, Block = Node>,
D: Dir,
Txn: Transaction<D>,
source§impl<F, D, Txn> TableStream for Merged<F, D, Txn>where
F: File<Key = NodeId, Block = Node>,
D: Dir,
Txn: Transaction<D>,
impl<F, D, Txn> TableStream for Merged<F, D, Txn>where
F: File<Key = NodeId, Block = Node>,
D: Dir,
Txn: Transaction<D>,
type Limit = Limited<F, D, Txn>
type Selection = Selection<F, D, Txn, Merged<F, D, Txn>>
source§fn 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§
source§impl<F> Match for F
impl<F> Match for F
source§fn matches<T>(&self) -> boolwhere
T: TryCastFrom<Self>,
fn matches<T>(&self) -> boolwhere
T: TryCastFrom<Self>,
Returns
true if self can be cast into the target type T.source§impl<F, T> TryCastFrom<F> for Twhere
T: CastFrom<F>,
impl<F, T> TryCastFrom<F> for Twhere
T: CastFrom<F>,
source§fn can_cast_from(_: &F) -> bool
fn can_cast_from(_: &F) -> bool
Test if
value can be cast into Self.source§fn 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.source§impl<F, T> TryCastInto<T> for Fwhere
T: TryCastFrom<F>,
impl<F, T> TryCastInto<T> for Fwhere
T: TryCastFrom<F>,
source§fn can_cast_into(&self) -> bool
fn can_cast_into(&self) -> bool
Test if
self can be cast into T.source§fn 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.