Skip to main content

DictEncoder

Trait DictEncoder 

Source
pub trait DictEncoder: Send {
    // Required methods
    fn encode(&mut self, array: &dyn Array) -> ArrayRef;
    fn reset(&mut self) -> ArrayRef;
    fn codes_ptype(&self) -> PType;
}

Required Methods§

Source

fn encode(&mut self, array: &dyn Array) -> ArrayRef

Assign dictionary codes to the given input array.

Source

fn reset(&mut self) -> ArrayRef

Clear the encoder state to make it ready for a new round of decoding.

Source

fn codes_ptype(&self) -> PType

Returns the PType of the codes this encoder produces.

Implementors§