encoding

package
v0.10.1 Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2026 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package encoding provides tag value encoding functionality with optimal compression for different data types including int64, float64, and other types using dictionary encoding with fallback to plain encoding with zstd compression.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DecodeTagValues

func DecodeTagValues(dst [][]byte, decoder *encoding.BytesBlockDecoder, bb *bytes.Buffer, valueType pbv1.ValueType, count int) ([][]byte, error)

DecodeTagValues decodes tag values based on the value type.

func EncodeTagValues

func EncodeTagValues(bb *bytes.Buffer, values [][]byte, valueType pbv1.ValueType) (encoding.EncodeType, error)

EncodeTagValues encodes tag values based on the value type with optimal compression. For int64: uses delta encoding with first value storage. For float64: converts to decimal integers with exponent, then delta encoding. For other types: uses dictionary encoding, falls back to plain with zstd compression.

Types

This section is empty.

Jump to

Keyboard shortcuts

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