Skip to main content

EncodedBatchWriteExt

Trait EncodedBatchWriteExt 

Source
pub trait EncodedBatchWriteExt {
    // Required methods
    fn try_to_self_described_lance(
        &self,
        version: LanceFileVersion,
    ) -> Result<Bytes>;
    fn try_to_mini_lance(&self, version: LanceFileVersion) -> Result<Bytes>;
}
Expand description

Utility trait for converting EncodedBatch to Bytes using the lance file format

Required Methods§

Source

fn try_to_self_described_lance( &self, version: LanceFileVersion, ) -> Result<Bytes>

Serializes into a lance file, including the schema

Source

fn try_to_mini_lance(&self, version: LanceFileVersion) -> Result<Bytes>

Serializes into a lance file, without the schema.

The schema must be provided to deserialize the buffer

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl EncodedBatchWriteExt for EncodedBatch

Implementors§