Buffers
| Input | Output | Alias |
|---|---|---|
| ✔ | ✔ |
Description
Buffers is a very simple binary format for ephemeral data exchange, where both the consumer and producer already know the schema and column order.
Unlike Native, it does not store column names, column types, or any extra metadata.
In this format, data is written and read by blocks in a binary format. Buffers uses the same per-column binary representation as the Native format and respects the same Native format settings.
For each block, the following sequence is written:
- Number of columns (UInt64, little-endian).
- Number of rows (UInt64, little-endian).
- For each column:
- Total byte size of the serialized column data (UInt64, little-endian).
- Serialized column data bytes, exactly as in the Native format.
Example usage
Write to a file:
Read back with an explicit column types:
If you have a table with same column types, you can populate it directly:
Inspect the table: