Trait mz_interchange::encode::Encode

source ·
pub trait Encode {
    // Required method
    fn encode_unchecked(&self, row: Row) -> Vec<u8> ;

    // Provided method
    fn hash(&self, buf: &[u8]) -> u64 { ... }
}

Required Methods§

source

fn encode_unchecked(&self, row: Row) -> Vec<u8>

Provided Methods§

source

fn hash(&self, buf: &[u8]) -> u64

Given the output of a call to Encode::encode_unchecked, returns a hash that is suitable for stable partitioning.

Implementors§