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§
Provided Methods§
sourcefn hash(&self, buf: &[u8]) -> u64
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.