Function lance_encoding::encoder::encode_batch
source ยท pub async fn encode_batch(
batch: &RecordBatch,
schema: Arc<Schema>,
encoding_strategy: &dyn FieldEncodingStrategy,
cache_bytes_per_column: u64,
) -> Result<EncodedBatch>
Expand description
Helper method to encode a batch of data into memory
This is primarily for testing and benchmarking but could be useful in other niche situations like IPC.