Documentation ¶
Index ¶
- Constants
- func AppendArgMinMaxInt32Float32(buf []byte, arg int32, v float32) []byte
- func AppendArgMinMaxInt32Float32Empty(buf []byte) []byte
- func AppendArgMinMaxStringEmpty(buf []byte) []byte
- func AppendArgMinMaxStringFloat64(buf []byte, arg string, v float64) []byte
- func AppendBool(buf []byte, v bool) []byte
- func AppendBytes(buf []byte, v []byte) []byte
- func AppendCentroids(buf []byte, td *tdigest.TDigest, sampleFactor float64) []byte
- func AppendDateTime(buf []byte, v time.Time) []byte
- func AppendEmptyCentroids(buf []byte) []byte
- func AppendEmptyString(buf []byte) []byte
- func AppendEmptyUnique(buf []byte) []byte
- func AppendFloat32(buf []byte, v float32) []byte
- func AppendFloat64(buf []byte, v float64) []byte
- func AppendInt16(buf []byte, v int16) []byte
- func AppendInt32(buf []byte, v int32) []byte
- func AppendInt64(buf []byte, v int64) []byte
- func AppendInt8(buf []byte, v int8) []byte
- func AppendNullableString(buf []byte, isNull bool, v string) []byte
- func AppendString(buf []byte, v string) []byte
- func AppendUUID(buf []byte, uuid string) ([]byte, error)
- func AppendUint16(buf []byte, v uint16) []byte
- func AppendUint32(buf []byte, v uint32) []byte
- func AppendUint64(buf []byte, v uint64) []byte
- func AppendUint8(buf []byte, v uint8) []byte
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 AppendArgMinMaxStringFloat64 ¶
Uses strange encoding. see struct SingleValueDataFixed and struct SingleValueDataString in ClickHouse code
func AppendBool ¶
func AppendBytes ¶
func AppendCentroids ¶
td can be nil
func AppendEmptyCentroids ¶
func AppendEmptyString ¶
func AppendEmptyUnique ¶
func AppendFloat32 ¶
func AppendFloat64 ¶
func AppendInt16 ¶
func AppendInt32 ¶
func AppendInt64 ¶
func AppendInt8 ¶
func AppendString ¶
func AppendUUID ¶
Парсит (с помощью github.com/google/uuid) строковое представление UUID ("123e4567-e89b-12d3-a456-426614174000") и добавляет его в буфер
func AppendUint16 ¶
func AppendUint32 ¶
func AppendUint64 ¶
func AppendUint8 ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.