frame

package
v0.11.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 24, 2026 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package frame binds the shared vec columnar frame codec (pkg/query/vectorized/frame) to the stream engine. It supplies stream's frame signature, wire version and role/type numbering; the byte layout is the shared base's, identical to measure's.

Index

Constants

View Source
const WireVersion uint8 = 1

WireVersion is the on-wire frame format version emitted by Encode. Stream starts at 1: it is a fresh engine binding, not a continuation of measure's version history.

Variables

View Source
var Magic = [4]byte{data.RawFrameMagicLeadingByte, 'V', 'F', 'R'}

Magic is the 4-byte prefix every raw stream frame body begins with. The first byte is data.RawFrameMagicLeadingByte (0x00) so a flag-off proto.Unmarshal of a raw body fails loud; 'V','F','R' is the frame signature.

Functions

func Decode

func Decode(b []byte) (*vectorized.RecordBatch, error)

Decode parses a stream raw frame body back into a RecordBatch.

func Encode

func Encode(b *vectorized.RecordBatch) ([]byte, error)

Encode serializes a stream vec columnar RecordBatch into a raw frame body.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL