Trait lance_encoding::encoder::BufferEncoder
source · pub trait BufferEncoder: Debug + Send + Sync {
// Required method
fn encode(&self, arrays: &[ArrayRef]) -> Result<EncodedBuffer>;
}
Expand description
Encodes data into a single buffer
Required Methods§
sourcefn encode(&self, arrays: &[ArrayRef]) -> Result<EncodedBuffer>
fn encode(&self, arrays: &[ArrayRef]) -> Result<EncodedBuffer>
Encode data
This method may receive multiple chunks and should encode them all into a single EncodedBuffer (though that buffer may have multiple parts). All parts will be written to the file as one contiguous block.