Skip to main content

KeyMapping

Enum KeyMapping 

Source
pub(crate) enum KeyMapping<K: ArrowDictionaryKeyType> {
    Dense(Vec<K::Native>),
    Sparse(HashMap<usize, K::Native, RandomState>),
}

Variants§

§

Dense(Vec<K::Native>)

§

Sparse(HashMap<usize, K::Native, RandomState>)

Implementations§

Source§

impl<K: ArrowDictionaryKeyType> KeyMapping<K>

Source

fn new_dense(len: usize) -> Self

Source

fn new_sparse(capacity: usize) -> Self

Source

fn insert(&mut self, old_key: usize, new_key: K::Native)

Source

pub fn get(&self, old_key: usize) -> Option<K::Native>

Auto Trait Implementations§

§

impl<K> Forget for KeyMapping<K>

§

impl<K> Freeze for KeyMapping<K>
where Vec<<K as ArrowPrimitiveType>::Native>: Freeze, HashMap<usize, <K as ArrowPrimitiveType>::Native, RandomState>: Freeze,

§

impl<K> Move for KeyMapping<K>

§

impl<K> RefUnwindSafe for KeyMapping<K>
where Vec<<K as ArrowPrimitiveType>::Native>: RefUnwindSafe, HashMap<usize, <K as ArrowPrimitiveType>::Native, RandomState>: RefUnwindSafe,

§

impl<K> Send for KeyMapping<K>
where Vec<<K as ArrowPrimitiveType>::Native>: Send, HashMap<usize, <K as ArrowPrimitiveType>::Native, RandomState>: Send,

§

impl<K> Sync for KeyMapping<K>
where Vec<<K as ArrowPrimitiveType>::Native>: Sync, HashMap<usize, <K as ArrowPrimitiveType>::Native, RandomState>: Sync,

§

impl<K> Unpin for KeyMapping<K>
where Vec<<K as ArrowPrimitiveType>::Native>: Unpin, HashMap<usize, <K as ArrowPrimitiveType>::Native, RandomState>: Unpin,

§

impl<K> UnsafeUnpin for KeyMapping<K>
where Vec<<K as ArrowPrimitiveType>::Native>: UnsafeUnpin, HashMap<usize, <K as ArrowPrimitiveType>::Native, RandomState>: UnsafeUnpin,

§

impl<K> UnwindSafe for KeyMapping<K>
where Vec<<K as ArrowPrimitiveType>::Native>: UnwindSafe, HashMap<usize, <K as ArrowPrimitiveType>::Native, RandomState>: UnwindSafe,

Blanket Implementations§

§

impl<T> Allocation for T
where T: RefUnwindSafe + Send + Sync,

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
§

impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

§

impl<T> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

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

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.