Skip to contents

table_write() is the common write path for shard table outputs:

  • For fixed-size outputs, write into a shard_table_buffer using a row selector.

  • For variable-size outputs, write into a shard_table_sink using a shard id.

Usage

table_write(target, rows_or_shard_id, data, ...)

Arguments

target

A shard_table_buffer or shard_table_sink.

rows_or_shard_id

For buffers: row selector (idx_range or integer vector). For sinks: shard id (integer).

data

A data.frame or named list matching the schema columns.

...

Reserved for future extensions.

Value

NULL (invisibly).

Examples

# \donttest{
s <- schema(x = float64(), y = int32())
tb <- table_buffer(s, nrow = 10L)
table_write(tb, idx_range(1, 5), data.frame(x = rnorm(5), y = 1:5))
# }