#[repr(i32)]pub enum IteratorType {
Eq = 0,
Req = 1,
All = 2,
LT = 3,
LE = 4,
GE = 5,
GT = 6,
BitsAllSet = 7,
BitsAnySet = 8,
BitsAllNotSet = 9,
Ovelaps = 10,
Neigbor = 11,
}
Expand description
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 = 0
key == x ASC order
Req = 1
key == x DESC order
All = 2
all tuples
LT = 3
key < x
LE = 4
key <= x
GE = 5
key >= x
GT = 6
key > x
BitsAllSet = 7
all bits from x are set in key
BitsAnySet = 8
at least one x’s bit is set
BitsAllNotSet = 9
all bits are not set
Ovelaps = 10
key overlaps x
Neigbor = 11
tuples in distance ascending order from specified point
Trait Implementations§
Source§impl Clone for IteratorType
impl Clone for IteratorType
Source§fn clone(&self) -> IteratorType
fn clone(&self) -> IteratorType
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for IteratorType
impl Debug for IteratorType
Source§impl ToPrimitive for IteratorType
impl ToPrimitive for IteratorType
Source§fn to_i64(&self) -> Option<i64>
fn to_i64(&self) -> Option<i64>
self
to an i64
. If the value cannot be
represented by an i64
, then None
is returned.Source§fn to_u64(&self) -> Option<u64>
fn to_u64(&self) -> Option<u64>
self
to a u64
. If the value cannot be
represented by a u64
, then None
is returned.Source§fn to_isize(&self) -> Option<isize>
fn to_isize(&self) -> Option<isize>
self
to an isize
. If the value cannot be
represented by an isize
, then None
is returned.Source§fn to_i8(&self) -> Option<i8>
fn to_i8(&self) -> Option<i8>
self
to an i8
. If the value cannot be
represented by an i8
, then None
is returned.Source§fn to_i16(&self) -> Option<i16>
fn to_i16(&self) -> Option<i16>
self
to an i16
. If the value cannot be
represented by an i16
, then None
is returned.Source§fn to_i32(&self) -> Option<i32>
fn to_i32(&self) -> Option<i32>
self
to an i32
. If the value cannot be
represented by an i32
, then None
is returned.Source§fn to_i128(&self) -> Option<i128>
fn to_i128(&self) -> Option<i128>
self
to an i128
. If the value cannot be
represented by an i128
(i64
under the default implementation), then
None
is returned. Read moreSource§fn to_usize(&self) -> Option<usize>
fn to_usize(&self) -> Option<usize>
self
to a usize
. If the value cannot be
represented by a usize
, then None
is returned.Source§fn to_u8(&self) -> Option<u8>
fn to_u8(&self) -> Option<u8>
self
to a u8
. If the value cannot be
represented by a u8
, then None
is returned.Source§fn to_u16(&self) -> Option<u16>
fn to_u16(&self) -> Option<u16>
self
to a u16
. If the value cannot be
represented by a u16
, then None
is returned.Source§fn to_u32(&self) -> Option<u32>
fn to_u32(&self) -> Option<u32>
self
to a u32
. If the value cannot be
represented by a u32
, then None
is returned.Source§fn to_u128(&self) -> Option<u128>
fn to_u128(&self) -> Option<u128>
self
to a u128
. If the value cannot be
represented by a u128
(u64
under the default implementation), then
None
is returned. Read more