lance_core::traits

Trait DatasetTakeRows

Source
pub trait DatasetTakeRows:
    Debug
    + Send
    + Sync {
    // Required methods
    fn schema(&self) -> &Schema;
    fn take_rows<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        row_ids: &'life1 [u64],
        projection: &'life2 Schema,
    ) -> Pin<Box<dyn Future<Output = Result<RecordBatch>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait;
}
Expand description

TakeRow trait.

It offers a lightweight trait to use take_rows() over a dataset, without depending on the lance trait.

Internal API

Required Methods§

Source

fn schema(&self) -> &Schema

The schema of the dataset.

Source

fn take_rows<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, row_ids: &'life1 [u64], projection: &'life2 Schema, ) -> Pin<Box<dyn Future<Output = Result<RecordBatch>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

Take rows by the internal ROW ids.

Implementors§