Struct dbkit_engine::block::Block
[−]
[src]
pub struct Block<'b> {
// some fields omitted
}A container for column data conforming to a pre-defined schema. This container is the owner of the columns (and their data)
Methods
impl<'b> Block<'b>[src]
fn new(alloc: &'b Allocator, schema: &Schema) -> Block<'b>
fn capacity(&self) -> RowOffset
fn set_capacity(&mut self, row_cap: RowOffset) -> Option<DBError>
Grow possible row space for each column
fn add_row(&mut self) -> Result<RowOffset, DBError>
Returns rowid of the added row
fn column_mut(&mut self, pos: usize) -> Option<&mut Column<'b>>
Mutable reference to column and its data.