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.
Click to show internal directories.
Click to hide internal directories.