Skip to content
API REFERENCEUsage guides →

cellpack::store::PanelRows ​

struct

Module contract · All interfaces

At a glance ​

pub struct PanelRows<'a, 'm, S, T> { /* private fields */ }

Decodes records of one chunk into panel rows of T, reading stored values as S (the chunk’s value width).

Member index ​

4 of 4 members

  • newpanel maps every coded id of the chunk to an output column or UNMAPPED (see compose_panel ).
  • bindSizes scratch for this chunk and converts its column modes once.
  • denseScatters one record into a dense panel row; nnz , when given, is the cell’s count from the chunk metadata and is checked.
  • csrWrites one record’s mapped elements in ascending panel columns: values to the front of values (which holds the record’s nnz) and the columns to the returned slice. Unmapped genes and the zeros of a dense-layout record are dropped; stored sparse zeros are kept.

Methods and associated constants ​

new ​

pub fn new(
    meta: &'a Meta<'m>,
    tables: &'a DecodeTables,
    panel: &'a [u32],
    mapper: &'a Mapper<S, T>,
) -> Result<Self>

panel maps every coded id of the chunk to an output column or UNMAPPED (see compose_panel).

bind ​

pub fn bind(&self, scratch: &mut RowScratch<T>) -> Result<()>

Sizes scratch for this chunk and converts its column modes once.

dense ​

pub fn dense(
    &self,
    record: &[u8],
    nnz: Option<usize>,
    out: &mut [T],
    fill: Fill,
    scratch: &mut RowScratch<T>,
) -> Result<()>

Scatters one record into a dense panel row; nnz, when given, is the cell’s count from the chunk metadata and is checked.

csr ​

pub fn csr<'s>(
    &self,
    record: &[u8],
    nnz: Option<usize>,
    values: &mut [T],
    scratch: &'s mut RowScratch<T>,
) -> Result<&'s [u32]>

Writes one record’s mapped elements in ascending panel columns: values to the front of values (which holds the record’s nnz) and the columns to the returned slice. Unmapped genes and the zeros of a dense-layout record are dropped; stored sparse zeros are kept.

Contract reference ​

See the module reference for semantic input/output rules, units, allocation, mutation, failure behavior, and lifetime requirements. Declarations and documented members are synchronized from the crate source.

Definition