rowbinary

package
v1.0.0-beta1 Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2022 License: MPL-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	/*
		В https://github.com/yandex/ClickHouse/blob/112fc71276517adf29939baf1353048e414f4877/dbms/src/AggregateFunctions/QuantileTDigest.h#L82 есть:
		 size_t max_unmerged = 2048;

		В tdigest.go unprocessedSize есть:
		return int(8 * math.Ceil(compression))

		Так что для единообразия задаю тоже самое значение как 2048/8 = 256
	*/
	TDigestCompression = 256
)

Variables

This section is empty.

Functions

func AppendArgMinMaxInt32Float32

func AppendArgMinMaxInt32Float32(buf []byte, arg int32, v float32) []byte

func AppendArgMinMaxInt32Float32Empty

func AppendArgMinMaxInt32Float32Empty(buf []byte) []byte

func AppendArgMinMaxStringEmpty

func AppendArgMinMaxStringEmpty(buf []byte) []byte

func AppendArgMinMaxStringFloat64

func AppendArgMinMaxStringFloat64(buf []byte, arg string, v float64) []byte

Uses strange encoding. see struct SingleValueDataFixed and struct SingleValueDataString in ClickHouse code

func AppendBool

func AppendBool(buf []byte, v bool) []byte

func AppendBytes

func AppendBytes(buf []byte, v []byte) []byte

func AppendCentroids

func AppendCentroids(buf []byte, td *tdigest.TDigest, sampleFactor float64) []byte

td can be nil

func AppendDateTime

func AppendDateTime(buf []byte, v time.Time) []byte

func AppendEmptyCentroids

func AppendEmptyCentroids(buf []byte) []byte

func AppendEmptyString

func AppendEmptyString(buf []byte) []byte

func AppendEmptyUnique

func AppendEmptyUnique(buf []byte) []byte

func AppendFloat32

func AppendFloat32(buf []byte, v float32) []byte

func AppendFloat64

func AppendFloat64(buf []byte, v float64) []byte

func AppendInt16

func AppendInt16(buf []byte, v int16) []byte

func AppendInt32

func AppendInt32(buf []byte, v int32) []byte

func AppendInt64

func AppendInt64(buf []byte, v int64) []byte

func AppendInt8

func AppendInt8(buf []byte, v int8) []byte

func AppendNullableString

func AppendNullableString(buf []byte, isNull bool, v string) []byte

func AppendString

func AppendString(buf []byte, v string) []byte

func AppendUUID

func AppendUUID(buf []byte, uuid string) ([]byte, error)

Парсит (с помощью github.com/google/uuid) строковое представление UUID ("123e4567-e89b-12d3-a456-426614174000") и добавляет его в буфер

func AppendUint16

func AppendUint16(buf []byte, v uint16) []byte

func AppendUint32

func AppendUint32(buf []byte, v uint32) []byte

func AppendUint64

func AppendUint64(buf []byte, v uint64) []byte

func AppendUint8

func AppendUint8(buf []byte, v uint8) []byte

Types

This section is empty.

Jump to

Keyboard shortcuts

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