lance_file::v2::writer

Trait 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§