Struct tc_table::Merged [−][src]
pub struct Merged<F, D, Txn> { /* fields omitted */ }
Expand description
A merge of multiple table indexes
Implementations
Create a new merge of the given IndexSlice
with the given MergeSource
.
pub async fn slice_rows<'a>(
self,
txn_id: TxnId,
bounds: Bounds,
reverse: bool
) -> TCResult<TCTryStream<'a, Vec<Value>>>
pub async fn slice_rows<'a>(
self,
txn_id: TxnId,
bounds: Bounds,
reverse: bool
) -> TCResult<TCTryStream<'a, Vec<Value>>>
Stream the rows within the given Bounds
of this merge
Trait Implementations
impl<F: File<Node>, D: Dir, Txn: Transaction<D>> TableInstance<F, D, Txn> for Merged<F, D, Txn>
impl<F: File<Node>, D: Dir, Txn: Transaction<D>> TableInstance<F, D, Txn> for Merged<F, D, Txn>
type OrderBy = Self
type OrderBy = Self
The type of Table
returned by this instance’s order_by
method.
type Reverse = Self
type Reverse = Self
The type of Table
returned by this instance’s reversed
method.
type Slice = Self
type Slice = Self
The type of Table
returned by this instance’s slice
method.
Delete all rows in this Table
.
Delete the given Row
from this table, if present.
Return the schema of this Table
.
Set the order returned by rows
.
Limit the returned rows
to the given Bounds
.
Return a stream of the rows in this Table
.
Return an error if this table does not support the given Bounds
.
Return an error if this table does not support ordering by the given columns.
Update the values of the columns in this Table
to match the given Row
.
Update one row of this Table
.
Return the number of rows in this Table
.
Group this Table
by the given columns.
Construct and return a temporary index of the given columns.
Limit the columns returned by rows
.
Auto Trait Implementations
impl<F, D, Txn> RefUnwindSafe for Merged<F, D, Txn> where
D: RefUnwindSafe,
F: RefUnwindSafe,
Txn: RefUnwindSafe,
impl<F, D, Txn> UnwindSafe for Merged<F, D, Txn> where
D: RefUnwindSafe,
F: RefUnwindSafe,
Txn: RefUnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more
Returns true
if self
can be cast into the target type T
.
type Output = T
type Output = T
Should always be Self
Test if value
can be cast into Self
.
Returns Some(Self)
if the source value can be cast into Self
, otherwise None
.
fn 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
.
Test if self
can be cast into T
.
Returns Some(T)
if self
can be cast into T
, otherwise None
.
fn 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
.
pub fn vzip(self) -> V