Expand description
A serialized array without its buffer (i.e. data).
array.fbs:
// SPDX-License-Identifier: Apache-2.0
// SPDX-FileCopyrightText: Copyright the Vortex contributors
/// An Array describes the hierarchy of an array as well as the locations of the data buffers that appear
/// immediately after the message in the byte stream.
table Array {
/// The array's hierarchical definition.
root: ArrayNode;
/// The locations of the data buffers of the array
buffers: [Buffer];
}
/// The compression mechanism used to compress the buffer.
enum Compression: uint8 {
None = 0,
LZ4 = 1,
}
/// A Buffer describes the location of a data buffer in the byte stream as a packed 64-bit struct.
struct Buffer {
/// The length of any padding bytes written immediately before the buffer.
padding: uint16;
/// The minimum alignment of the buffer, stored as an exponent of 2.
alignment_exponent: uint8;
/// The compression algorithm used to compress the buffer.
compression: Compression;
/// The length of the buffer in bytes.
length: uint32;
}
table ArrayNode {
encoding: uint16;
metadata: [ubyte];
children: [ArrayNode];
buffers: [uint16];
stats: ArrayStats;
}
enum Precision: uint8 {
Inexact = 0,
Exact = 1,
}
table ArrayStats {
/// Protobuf serialized ScalarValue
min: [ubyte];
min_precision: Precision;
max: [ubyte];
max_precision: Precision;
sum: [ubyte];
is_sorted: bool = null;
is_strict_sorted: bool = null;
is_constant: bool = null;
null_count: uint64 = null;
uncompressed_size_in_bytes: uint64 = null;
nan_count: uint64 = null;
}
root_type Array;Structs§
- Array
- An Array describes the hierarchy of an array as well as the locations of the data buffers that appear immediately after the message in the byte stream.
- Array
Args - Array
Builder - Array
Node - Array
Node Args - Array
Node Builder - Array
Stats - Array
Stats Args - Array
Stats Builder - Buffer
- A Buffer describes the location of a data buffer in the byte stream as a packed 64-bit struct.
- Compression
- The compression mechanism used to compress the buffer.
- Precision
Enums§
Constants§
- ENUM_
MAX_ COMPRESSION Deprecated - ENUM_
MAX_ PRECISION Deprecated - ENUM_
MIN_ COMPRESSION Deprecated - ENUM_
MIN_ PRECISION Deprecated - ENUM_
VALUES_ COMPRESSION Deprecated - ENUM_
VALUES_ PRECISION Deprecated
Functions§
- finish_
array_ buffer - finish_
size_ prefixed_ array_ buffer - root_
as_ array - Verifies that a buffer of bytes contains a
Arrayand returns it. Note that verification is still experimental and may not catch every error, or be maximally performant. For the previous, unchecked, behavior useroot_as_array_unchecked. - root_
as_ ⚠array_ unchecked - Assumes, without verification, that a buffer of bytes contains a Array and returns it.
- root_
as_ array_ with_ opts - Verifies, with the given options, that a buffer of bytes
contains a
Arrayand returns it. Note that verification is still experimental and may not catch every error, or be maximally performant. For the previous, unchecked, behavior useroot_as_array_unchecked. - size_
prefixed_ root_ as_ array - Verifies that a buffer of bytes contains a size prefixed
Arrayand returns it. Note that verification is still experimental and may not catch every error, or be maximally performant. For the previous, unchecked, behavior usesize_prefixed_root_as_array_unchecked. - size_
prefixed_ ⚠root_ as_ array_ unchecked - Assumes, without verification, that a buffer of bytes contains a size prefixed Array and returns it.
- size_
prefixed_ root_ as_ array_ with_ opts - Verifies, with the given verifier options, that a buffer of
bytes contains a size prefixed
Arrayand returns it. Note that verification is still experimental and may not catch every error, or be maximally performant. For the previous, unchecked, behavior useroot_as_array_unchecked.