risingwave_common::test_utils::test_stream_chunk

Trait TestStreamChunk

source
pub trait TestStreamChunk {
    // Required methods
    fn stream_chunk(&self) -> StreamChunk;
    fn cardinality(&self) -> usize;
    fn schema(&self) -> Schema;
    fn op_at(&self, idx: usize) -> Op;
    fn row_at(&self, idx: usize) -> OwnedRow;

    // Provided methods
    fn pk_indices(&self) -> Vec<usize> { ... }
    fn data_types(&self) -> Vec<DataType> { ... }
    fn row_with_op_at(&self, idx: usize) -> (Op, OwnedRow) { ... }
    fn value_at(&self, row_idx: usize, col_idx: usize) -> Datum { ... }
}

Required Methods§

source

fn stream_chunk(&self) -> StreamChunk

source

fn cardinality(&self) -> usize

source

fn schema(&self) -> Schema

source

fn op_at(&self, idx: usize) -> Op

source

fn row_at(&self, idx: usize) -> OwnedRow

Provided Methods§

source

fn pk_indices(&self) -> Vec<usize>

source

fn data_types(&self) -> Vec<DataType>

source

fn row_with_op_at(&self, idx: usize) -> (Op, OwnedRow)

source

fn value_at(&self, row_idx: usize, col_idx: usize) -> Datum

Implementors§