[][src]Enum tarantool_module::index::IteratorType

#[repr(i32)]pub enum IteratorType {
    Eq,
    Req,
    All,
    LT,
    LE,
    GE,
    GT,
    BitsAllSet,
    BitsAnySet,
    BitsAllNotSet,
    Ovelaps,
    Neigbor,
}

Controls how to iterate over tuples in an index. Different index types support different iterator types. For example, one can start iteration from a particular value (request key) and then retrieve all tuples where keys are greater or equal (= GE) to this key.

If iterator type is not supported by the selected index type, iterator constructor must fail with ER_UNSUPPORTED. To be selectable for primary key, an index must support at least Eq and GE types.

None value of request key corresponds to the first or last key in the index, depending on iteration direction. (first key for GE and GT types, and last key for LE and LT). Therefore, to iterate over all tuples in an index, one can use GE or LE iteration types with start key equal to None. For EQ, the key must not be None.

Variants

Eq

key == x ASC order

Req

key == x DESC order

All

all tuples

LT

key < x

LE

key <= x

GE

key >= x

GT

key > x

BitsAllSet

all bits from x are set in key

BitsAnySet

at least one x's bit is set

BitsAllNotSet

all bits are not set

Ovelaps

key overlaps x

Neigbor

tuples in distance ascending order from specified point

Trait Implementations

impl Clone for IteratorType[src]

impl Copy for IteratorType[src]

impl Debug for IteratorType[src]

impl ToPrimitive for IteratorType[src]

Auto Trait Implementations

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<T> From<T> for T[src]

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

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

type Owned = T

The resulting type after obtaining ownership.

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.