Struct tc_table::TableIndex[][src]

pub struct TableIndex<F: File<Node>, D: Dir, Txn: Transaction<D>> { /* fields omitted */ }

The base type of a Table.

Implementations

impl<F: File<Node>, D: Dir, Txn: Transaction<D>> TableIndex<F, D, Txn>[src]

pub async fn create(
    schema: TableSchema,
    context: &D,
    txn_id: TxnId
) -> TCResult<TableIndex<F, D, Txn>> where
    F: TryFrom<D::File, Error = TCError>,
    D::FileClass: From<BTreeType>, 
[src]

pub async fn is_empty(&self, txn: &Txn) -> TCResult<bool>[src]

pub fn merge_bounds(&self, all_bounds: Vec<Bounds>) -> TCResult<Bounds>[src]

pub fn primary(&self) -> &Index<F, D, Txn>[src]

pub fn supporting_index(&self, bounds: &Bounds) -> TCResult<Index<F, D, Txn>>[src]

pub async fn get(
    &self,
    txn_id: TxnId,
    key: Vec<Value>
) -> TCResult<Option<Vec<Value>>>
[src]

pub async fn insert(
    &self,
    txn_id: TxnId,
    key: Vec<Value>,
    values: Vec<Value>
) -> TCResult<()>
[src]

pub async fn upsert(
    &self,
    txn_id: TxnId,
    key: Vec<Value>,
    values: Vec<Value>
) -> TCResult<()>
[src]

pub async fn slice_rows<'a>(
    self,
    txn_id: TxnId,
    bounds: Bounds,
    reverse: bool
) -> TCResult<TCTryStream<'a, Vec<Value>>>
[src]

Trait Implementations

impl<F: Clone + File<Node>, D: Clone + Dir, Txn: Clone + Transaction<D>> Clone for TableIndex<F, D, Txn>[src]

impl<F: File<Node>, D: Dir, Txn: Transaction<D>> Display for TableIndex<F, D, Txn>[src]

impl<F: File<Node>, D: Dir, Txn: Transaction<D>> From<TableIndex<F, D, Txn>> for Table<F, D, Txn>[src]

impl<F: File<Node>, D: Dir, Txn: Transaction<D>> Instance for TableIndex<F, D, Txn>[src]

type Class = TableType

The Class type of this instance

impl<F: File<Node>, D: Dir, Txn: Transaction<D>> Persist<D, Txn> for TableIndex<F, D, Txn> where
    F: TryFrom<D::File, Error = TCError>, 
[src]

type Schema = TableSchema

type Store = D

impl<F: File<Node>, D: Dir, Txn: Transaction<D>> Restore<D, Txn> for TableIndex<F, D, Txn>[src]

impl<F: File<Node>, D: Dir, Txn: Transaction<D>> TableInstance<F, D, Txn> for TableIndex<F, D, Txn>[src]

type OrderBy = Merged<F, D, Txn>

The type of Table returned by this instance’s order_by method.

type Reverse = Merged<F, D, Txn>

The type of Table returned by this instance’s reversed method.

type Slice = Merged<F, D, Txn>

The type of Table returned by this instance’s slice method.

impl<F: File<Node> + Transact, D: Dir, Txn: Transaction<D>> Transact for TableIndex<F, D, Txn>[src]

Auto Trait Implementations

impl<F, D, Txn> RefUnwindSafe for TableIndex<F, D, Txn> where
    D: RefUnwindSafe,
    F: RefUnwindSafe,
    Txn: RefUnwindSafe

impl<F, D, Txn> Send for TableIndex<F, D, Txn>

impl<F, D, Txn> Sync for TableIndex<F, D, Txn>

impl<F, D, Txn> Unpin for TableIndex<F, D, Txn>

impl<F, D, Txn> UnwindSafe for TableIndex<F, D, Txn> where
    D: RefUnwindSafe,
    F: RefUnwindSafe,
    Txn: RefUnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<F, T> CastFrom<F> for T where
    T: From<F>, 
[src]

impl<T, F> CastInto<F> for T where
    F: CastFrom<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<F> Match for F[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<F, T> TryCastFrom<F> for T where
    T: CastFrom<F>, 
[src]

impl<F, T> TryCastInto<T> for F where
    T: TryCastFrom<F>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,