table_buffer: Allocate a fixed-row table buffer

View source: R/tables.R

table_bufferR Documentation

Allocate a fixed-row table buffer

Description

Allocates a columnar table output: one typed buffer per column, each of length nrow. Intended for lock-free disjoint row-range writes in shard_map.

Usage

table_buffer(schema, nrow, backing = c("auto", "mmap", "shm"))

Arguments

schema

A shard_schema.

nrow

Total number of rows in the final table.

backing

Backing type for buffers ("auto", "mmap", "shm").

Value

A shard_table_buffer object with one shared buffer per schema column.

Examples


s <- schema(x = float64(), y = int32())
tb <- table_buffer(s, nrow = 100L)


shard documentation built on April 3, 2026, 9:08 a.m.