frame

package
v0.11.2 Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2026 License: Apache-2.0 Imports: 4 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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