struct EnumEncoder<'a> {
keys: &'a PrimitiveArray<Int32Type>,
}
Expand description
Avro enum
encoder for Arrow DictionaryArray<Int32, Utf8>
.
Per Avro spec, an enum is encoded as an int equal to the
zero-based position of the symbol in the schema’s symbols
list.
We validate at construction that the dictionary values equal the symbols,
so we can directly write the key value here.
Fields§
§keys: &'a PrimitiveArray<Int32Type>
Implementations§
Auto Trait Implementations§
impl<'a> Freeze for EnumEncoder<'a>
impl<'a> RefUnwindSafe for EnumEncoder<'a>
impl<'a> Send for EnumEncoder<'a>
impl<'a> Sync for EnumEncoder<'a>
impl<'a> Unpin for EnumEncoder<'a>
impl<'a> UnwindSafe for EnumEncoder<'a>
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
Mutably borrows from an owned value. Read more