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

pub struct ChunkedVecJson {
    data: Vec<u8>,
    bitmap: BitVec,
    length: usize,
    var_offset: Vec<usize>,
}

A vector storing Option<Json> with a compact layout.

Inside ChunkedVecJson, bitmap indicates if an element at given index is null, and data stores actual data. Json data are stored adjacent to each other in data. If element at a given index is null, then it takes no space in data. Otherwise, a one byte json_type and variable size json data is stored in data, and var_offset indicates the starting position of each element.

Fields

data: Vec<u8>bitmap: BitVeclength: usizevar_offset: Vec<usize>

Implementations

impl ChunkedVecJson[src]

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

Trait Implementations

impl<'a> ChunkRef<'a, JsonRef<'a>> for &'a ChunkedVecJson[src]

impl ChunkedVec<Json> for ChunkedVecJson[src]

impl Clone for ChunkedVecJson[src]

impl Debug for ChunkedVecJson[src]

impl From<ChunkedVecJson> for VectorValue[src]

impl From<Vec<Option<Json>, Global>> for ChunkedVecJson[src]

impl PartialEq<ChunkedVecJson> for ChunkedVecJson[src]

impl StructuralPartialEq for ChunkedVecJson[src]

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

Auto Trait Implementations

impl RefUnwindSafe for ChunkedVecJson

impl Send for ChunkedVecJson

impl Sync for ChunkedVecJson

impl Unpin for ChunkedVecJson

impl UnwindSafe for ChunkedVecJson

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]