Skip to main content

Batch

Trait Batch 

Source
pub trait Batch {
    // Required methods
    fn rows(&self) -> usize;
    fn retained_bytes(&self) -> usize;

    // Provided method
    fn is_empty(&self) -> bool { ... }
}
Expand description

A bounded unit of columnar or row-oriented work.

Required Methods§

Source

fn rows(&self) -> usize

Number of logical rows in this batch.

Source

fn retained_bytes(&self) -> usize

Bytes retained while this batch remains alive.

Provided Methods§

Source

fn is_empty(&self) -> bool

Reports whether this batch contains no logical rows.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§