Trait lance_file::v2::writer::EncodedBatchWriteExt

source ·
pub trait EncodedBatchWriteExt {
    // Required methods
    fn try_to_self_described_lance(&self) -> Result<Bytes>;
    fn try_to_mini_lance(&self) -> 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) -> Result<Bytes>

Serializes into a lance file, including the schema

source

fn try_to_mini_lance(&self) -> Result<Bytes>

Serializes into a lance file, without the schema.

The schema must be provided to deserialize the buffer

Implementations on Foreign Types§

source§

impl EncodedBatchWriteExt for EncodedBatch

Implementors§