Skip to main content

TableOperations

Trait TableOperations 

Source
pub trait TableOperations {
    // Required methods
    fn insert_table(
        &mut self,
        table: &Table,
        shape: &RowShape,
        ids: &[RowNumber],
        rows: &mut [EncodedTableRowBuilder],
    ) -> Result<()>;
    fn update_table(
        &mut self,
        table: &Table,
        ids: &[RowNumber],
        partitions: &[Partition],
        rows: &mut [EncodedTableRowBuilder],
    ) -> Result<Vec<(RowNumber, EncodedBytes)>>;
    fn remove_from_table(
        &mut self,
        table: &Table,
        ids: &[RowNumber],
        partitions: &[Partition],
    ) -> Result<Vec<(RowNumber, EncodedBytes)>>;
}

Required Methods§

Source

fn insert_table( &mut self, table: &Table, shape: &RowShape, ids: &[RowNumber], rows: &mut [EncodedTableRowBuilder], ) -> Result<()>

Source

fn update_table( &mut self, table: &Table, ids: &[RowNumber], partitions: &[Partition], rows: &mut [EncodedTableRowBuilder], ) -> Result<Vec<(RowNumber, EncodedBytes)>>

Source

fn remove_from_table( &mut self, table: &Table, ids: &[RowNumber], partitions: &[Partition], ) -> Result<Vec<(RowNumber, EncodedBytes)>>

Dyn Compatibility§

This trait is dyn compatible.

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

Implementations on Foreign Types§

Source§

impl TableOperations for AdminTransaction

Source§

fn insert_table( &mut self, table: &Table, shape: &RowShape, ids: &[RowNumber], rows: &mut [EncodedTableRowBuilder], ) -> Result<()>

Source§

fn update_table( &mut self, table: &Table, ids: &[RowNumber], partitions: &[Partition], rows: &mut [EncodedTableRowBuilder], ) -> Result<Vec<(RowNumber, EncodedBytes)>>

Source§

fn remove_from_table( &mut self, table: &Table, ids: &[RowNumber], partitions: &[Partition], ) -> Result<Vec<(RowNumber, EncodedBytes)>>

Source§

impl TableOperations for CommandTransaction

Source§

fn insert_table( &mut self, table: &Table, shape: &RowShape, ids: &[RowNumber], rows: &mut [EncodedTableRowBuilder], ) -> Result<()>

Source§

fn update_table( &mut self, table: &Table, ids: &[RowNumber], partitions: &[Partition], rows: &mut [EncodedTableRowBuilder], ) -> Result<Vec<(RowNumber, EncodedBytes)>>

Source§

fn remove_from_table( &mut self, table: &Table, ids: &[RowNumber], partitions: &[Partition], ) -> Result<Vec<(RowNumber, EncodedBytes)>>

Source§

impl TableOperations for Transaction<'_>

Source§

fn insert_table( &mut self, table: &Table, shape: &RowShape, ids: &[RowNumber], rows: &mut [EncodedTableRowBuilder], ) -> Result<()>

Source§

fn update_table( &mut self, table: &Table, ids: &[RowNumber], partitions: &[Partition], rows: &mut [EncodedTableRowBuilder], ) -> Result<Vec<(RowNumber, EncodedBytes)>>

Source§

fn remove_from_table( &mut self, table: &Table, ids: &[RowNumber], partitions: &[Partition], ) -> Result<Vec<(RowNumber, EncodedBytes)>>

Implementors§