Struct tidb_query_datatype::codec::data_type::ChunkedVecEnum[][src]

pub struct ChunkedVecEnum {
    values: ChunkedVecSized<Int>,
    names: ChunkedVecBytes,
}

ChunkedVecEnum is a vector storing Option<Enum>.

Inside ChunkedVecEnum:

Notes

values and names both maintain a duplicated bitmap. We are not able to store the data in a more compact form because we have to borrow the reference of ChunkedVecSize<Int> and ChunkedVecBytes. The borrowed reference should have the same lifetime with ChunkedVecEnum which cannot be achieved if we don’t store the owned data in struct fields.

TODO: Change to a compact format when TiDB has its Enum/Set EvalType

Fields

values: ChunkedVecSized<Int>names: ChunkedVecBytes

Implementations

impl ChunkedVecEnum[src]

pub fn get(&self, idx: usize) -> Option<EnumRef<'_>>[src]

pub fn as_vec_int(&self) -> &ChunkedVecSized<Int>[src]

pub fn as_vec_bytes(&self) -> &ChunkedVecBytes[src]

Trait Implementations

impl<'a> ChunkRef<'a, EnumRef<'a>> for &'a ChunkedVecEnum[src]

impl ChunkedVec<Enum> for ChunkedVecEnum[src]

impl Clone for ChunkedVecEnum[src]

impl Debug for ChunkedVecEnum[src]

impl From<ChunkedVecEnum> for VectorValue[src]

impl From<Vec<Option<Enum>, Global>> for ChunkedVecEnum[src]

impl PartialEq<ChunkedVecEnum> for ChunkedVecEnum[src]

impl<'a> UnsafeRefInto<&'static ChunkedVecEnum> for &'a ChunkedVecEnum[src]

Auto Trait Implementations

impl RefUnwindSafe for ChunkedVecEnum

impl Send for ChunkedVecEnum

impl Sync for ChunkedVecEnum

impl Unpin for ChunkedVecEnum

impl UnwindSafe for ChunkedVecEnum

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<V, W> ConvertFrom<W> for V where
    W: ConvertTo<V>, 
[src]

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

impl<T> Instrument for T[src]

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

impl<T> Pointable for T[src]

type Init = T

The type for initializers.

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

type Output = T

Should always be Self

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

impl<T> SendSyncUnwindSafe for T where
    T: Send + Sync + UnwindSafe + ?Sized
[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.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 
[src]