Enum polars::datatypes::categorical::RevMapping
source · [−]pub enum RevMapping {
Global(HashMap<u32, u32, RandomState, Global>, Utf8Array<i64>, u128),
Local(Utf8Array<i64>),
}
Variants
Global(HashMap<u32, u32, RandomState, Global>, Utf8Array<i64>, u128)
Hashmap: maps the indexes from the global cache/categorical array to indexes in the local Utf8Array Utf8Array: caches the string values
Local(Utf8Array<i64>)
Utf8Array: caches the string values
Implementations
sourceimpl RevMapping
impl RevMapping
sourcepub fn len(&self) -> usize
pub fn len(&self) -> usize
Get the length of the RevMapping
sourcepub fn same_src(&self, other: &RevMapping) -> bool
pub fn same_src(&self, other: &RevMapping) -> bool
Check if the categoricals are created under the same global string cache.
Trait Implementations
sourceimpl Debug for RevMapping
impl Debug for RevMapping
sourceimpl Default for RevMapping
impl Default for RevMapping
sourcefn default() -> RevMapping
fn default() -> RevMapping
Returns the “default value” for a type. Read more
Auto Trait Implementations
impl RefUnwindSafe for RevMapping
impl Send for RevMapping
impl Sync for RevMapping
impl Unpin for RevMapping
impl UnwindSafe for RevMapping
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more