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§
Sourcefn try_to_self_described_lance(
&self,
version: LanceFileVersion,
) -> Result<Bytes>
fn try_to_self_described_lance( &self, version: LanceFileVersion, ) -> Result<Bytes>
Serializes into a lance file, including the schema
Sourcefn try_to_mini_lance(&self, version: LanceFileVersion) -> Result<Bytes>
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".