Expand description
Typed columnar vectors and expression kernels (Spec/2064g/perf/02).
The executor’s tuple representation today is a Vec<Vec
The factorized execution model is unchanged; only the bones are new. The old executor keeps running while this crate lands standalone, then the perf/03 executor consumes it natively.
Re-exports§
pub use kernels::BinOp;pub use kernels::CmpOp;pub use kernels::MathOp;pub use kernels::MathPair;pub use kernels::StrCut;pub use kernels::StrFold;pub use kernels::StrLen;pub use kernels::StrNorm;pub use kernels::StrTrim;pub use kernels::TrimSet;
Modules§
- kernels
- Vectorized kernels (perf/02 section 3, perf/11).
Structs§
- Bitmap
- Chunk
Set - A factorized tuple group: chunks[0] is the flat prefix, chunks[1..] are unflat list levels.
- Data
Chunk - Dictionary
- A sorted, deduplicated string dictionary, matching the on-disk dict
encoding’s order so range predicates map to code ranges. Entry bytes
are concatenated;
ends[i]is the exclusive end of entry i. - Morsel
Arena - Bump allocator for one morsel’s working memory.
- Pooled
Arena - An arena on loan from this thread’s pool.
- Program
- RawBuf
- An untyped byte buffer handed out by the arena. Unique: not Clone, so
mutable access cannot alias. The typed accessors are safe because the
arena zeroes blocks at birth and every
Podtype tolerates any bit pattern. - SelVector
- StrBuffers
- Shared byte buffers backing long string views. A vector holding views into a decoded segment chunk, or into a frame’s Arrow data buffer, keeps what it points at alive without copying it.
- StrBuilder
- Where a kernel puts the bytes of the strings it makes.
- StrView
- Value
Vector
Enums§
- Aux
- Side data a vector may carry.
- ExprOp
- Owned
Value - A constant at the program boundary. Becomes a Constant vector at evaluation, so kernels see one encoding for literals and correlated single values alike.
- Phys
Type - Physical types. A cell is one machine word or one 16-byte view, never a tagged enum: the tag lives once per vector, not once per value.
- VecEncoding
Constants§
- BLOCK_
BYTES - Largest arena block. Matches the storage block so a decoded chunk and its working vectors have the same granularity.
- INLINE_
LEN - Longest string held entirely inside the view.
- VECTOR_
SIZE - Rows per vector, unchanged from the executor’s chunk fill width. A u16 selection index covers it with room to spare, and one vector spans exactly two of the storage layer’s 1024-row decode chunks.
Statics§
- NO_
BUFFERS - A vector whose views are all short carries no buffers at all, and a
kernel resolving one still has to hand something to
bytes. This is that something, and being a constant it costs nothing to have.
Traits§
- Pod
- Types a
RawBufmay be viewed as: fixed layout, any bit pattern valid.
Functions§
- const_
str - A constant string vector: inline view when short, otherwise one shared buffer holding the payload.
- node_
group - The storage group a node reference falls in, for gather radix splits.
- node_
ref - Pack a node reference. Row is the table row (group * GROUP_ROWS + row within group), which fits 48 bits with 2^48 rows per table to spare.
- node_
row - node_
table - str_
vector - Convenience constructor for tests and result building: a flat string vector from byte slices, short ones inline, long ones packed into one shared buffer.
- str_
vector_ from_ ends - A flat string vector over the
bytesandendsa decoded string column arrives in, whereendsis the offset one past each string.