pub struct DictionaryEncoding {
pub id: i64,
pub index_type: Option<Box<Int>>,
pub is_ordered: bool,
pub dictionary_kind: DictionaryKind,
}Expand description
The table DictionaryEncoding in the namespace org.apache.arrow.flatbuf
Generated from these locations:
- Table
DictionaryEncodingin the fileSchema.fbs:486
Fields§
§id: i64The known dictionary id in the application where this data is used. In the file or streaming formats, the dictionary ids are found in the DictionaryBatch messages
index_type: Option<Box<Int>>The dictionary indices are constrained to be non-negative integers. If this field is null, the indices must be signed int32. To maximize cross-language compatibility and performance, implementations are recommended to prefer signed integer types over unsigned integer types and to avoid uint64 indices unless they are required by an application.
is_ordered: boolBy default, dictionaries are not ordered, or the order does not have semantic meaning. In some statistical, applications, dictionary-encoding is used to represent ordered categorical data, and we provide a way to preserve that metadata here
dictionary_kind: DictionaryKindThe field dictionaryKind in the table DictionaryEncoding
Implementations§
Source§impl DictionaryEncoding
impl DictionaryEncoding
Sourcepub fn builder() -> DictionaryEncodingBuilder<()>
pub fn builder() -> DictionaryEncodingBuilder<()>
Creates a DictionaryEncodingBuilder for serializing an instance of this table.
pub fn create( builder: &mut Builder, field_id: impl WriteAsDefault<i64, i64>, field_index_type: impl WriteAsOptional<Offset<Int>>, field_is_ordered: impl WriteAsDefault<bool, bool>, field_dictionary_kind: impl WriteAsDefault<DictionaryKind, DictionaryKind>, ) -> Offset<Self>
Trait Implementations§
Source§impl Clone for DictionaryEncoding
impl Clone for DictionaryEncoding
Source§fn clone(&self) -> DictionaryEncoding
fn clone(&self) -> DictionaryEncoding
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for DictionaryEncoding
impl Debug for DictionaryEncoding
Source§impl Default for DictionaryEncoding
impl Default for DictionaryEncoding
Source§impl<'de> Deserialize<'de> for DictionaryEncoding
impl<'de> Deserialize<'de> for DictionaryEncoding
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl Hash for DictionaryEncoding
impl Hash for DictionaryEncoding
Source§impl Ord for DictionaryEncoding
impl Ord for DictionaryEncoding
Source§fn cmp(&self, other: &DictionaryEncoding) -> Ordering
fn cmp(&self, other: &DictionaryEncoding) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Source§impl PartialEq for DictionaryEncoding
impl PartialEq for DictionaryEncoding
Source§impl PartialOrd for DictionaryEncoding
impl PartialOrd for DictionaryEncoding
Source§impl Serialize for DictionaryEncoding
impl Serialize for DictionaryEncoding
Source§impl<'a> TryFrom<DictionaryEncodingRef<'a>> for DictionaryEncoding
impl<'a> TryFrom<DictionaryEncodingRef<'a>> for DictionaryEncoding
impl Eq for DictionaryEncoding
impl StructuralPartialEq for DictionaryEncoding
impl VectorWrite<Offset<DictionaryEncoding>> for DictionaryEncoding
§Safety
The planus compiler generates implementations that initialize
the bytes in write_values.
impl WriteAs<Offset<DictionaryEncoding>> for DictionaryEncoding
impl WriteAsOffset<DictionaryEncoding> for DictionaryEncoding
impl<T0: WriteAsDefault<i64, i64>, T1: WriteAsOptional<Offset<Int>>, T2: WriteAsDefault<bool, bool>, T3: WriteAsDefault<DictionaryKind, DictionaryKind>> WriteAsOffset<DictionaryEncoding> for DictionaryEncodingBuilder<(T0, T1, T2, T3)>
impl WriteAsOptional<Offset<DictionaryEncoding>> for DictionaryEncoding
Auto Trait Implementations§
impl Freeze for DictionaryEncoding
impl RefUnwindSafe for DictionaryEncoding
impl Send for DictionaryEncoding
impl Sync for DictionaryEncoding
impl Unpin for DictionaryEncoding
impl UnwindSafe for DictionaryEncoding
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more