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§
Sourcefn encode(&mut self, array: &dyn Array) -> ArrayRef
fn encode(&mut self, array: &dyn Array) -> ArrayRef
Assign dictionary codes to the given input array.
Sourcefn reset(&mut self) -> ArrayRef
fn reset(&mut self) -> ArrayRef
Clear the encoder state to make it ready for a new round of decoding.
Sourcefn codes_ptype(&self) -> PType
fn codes_ptype(&self) -> PType
Returns the PType of the codes this encoder produces.