types

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Feb 8, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ArrayValue

type ArrayValue struct {
	TotalCount   uint64
	DefaultCount uint64
	NullCount    uint64
	Values       *ValueValue
}

func NewArrayValue

func NewArrayValue() *ArrayValue

func NewArrayValueFromProto

func NewArrayValueFromProto(arrayValue *protos.ArrayValue) (*ArrayValue, error)

func (*ArrayValue) ToProto

func (av *ArrayValue) ToProto() *protos.ArrayValue

type AvgStat

type AvgStat struct {
	Sum   float64
	Count uint64
}

func NewAvgStat

func NewAvgStat() *AvgStat

func NewAvgStatFromProto

func NewAvgStatFromProto(avgStat *protos.AvgStat) *AvgStat

func (*AvgStat) ToProto

func (as *AvgStat) ToProto() *protos.AvgStat

type BooleanValue

type BooleanValue struct {
	TotalCount   uint64
	DefaultCount uint64
	NullCount    uint64
	FalseCount   uint64
	TrueCount    uint64
}

func NewBooleanValue

func NewBooleanValue() *BooleanValue

func NewBooleanValueFromProto

func NewBooleanValueFromProto(booleanValue *protos.BooleanValue) *BooleanValue

func (*BooleanValue) ToProto

func (bv *BooleanValue) ToProto() *protos.BooleanValue

type HyperLogLog

type HyperLogLog struct {
	Sketch      *hyperloglog.Sketch
	Cardinality uint64
}

func NewHyperLogLog

func NewHyperLogLog() *HyperLogLog

func NewHyperLogLogFromProto

func NewHyperLogLogFromProto(hyperLogLog *protos.HyperLogLog) (*HyperLogLog, error)

func (*HyperLogLog) InsertBytes

func (hll *HyperLogLog) InsertBytes(data []byte) *HyperLogLog

func (*HyperLogLog) InsertFloat64

func (hll *HyperLogLog) InsertFloat64(data float64) *HyperLogLog

func (*HyperLogLog) InsertInt64

func (hll *HyperLogLog) InsertInt64(data int64) *HyperLogLog

func (*HyperLogLog) ToProto

func (hll *HyperLogLog) ToProto() *protos.HyperLogLog

type MaxStat

type MaxStat struct {
	Value float64
}

func NewMaxStat

func NewMaxStat() *MaxStat

func NewMaxStatFromProto

func NewMaxStatFromProto(maxStat *protos.MaxStat) *MaxStat

func (*MaxStat) ToProto

func (ms *MaxStat) ToProto() *protos.MaxStat

type MinStat

type MinStat struct {
	Value float64
}

func NewMinStat

func NewMinStat() *MinStat

func NewMinStatFromProto

func NewMinStatFromProto(minStat *protos.MinStat) *MinStat

func (*MinStat) ToProto

func (ms *MinStat) ToProto() *protos.MinStat

type NumberStat

type NumberStat struct {
	Min         *MinStat
	Avg         *AvgStat
	Max         *MaxStat
	HyperLogLog *HyperLogLog
}

func NewNumberStat

func NewNumberStat() *NumberStat

func NewNumberStatFromProto

func NewNumberStatFromProto(numberStat *protos.NumberStat) (*NumberStat, error)

func (*NumberStat) ToProto

func (ns *NumberStat) ToProto() *protos.NumberStat

type NumberValue

type NumberValue struct {
	TotalCount   uint64
	DefaultCount uint64
	NullCount    uint64
	Min          *MinStat
	Avg          *AvgStat
	Max          *MaxStat
	HyperLogLog  *HyperLogLog
}

func NewNumberValue

func NewNumberValue() *NumberValue

func NewNumberValueFromProto

func NewNumberValueFromProto(numberValue *protos.NumberValue) (*NumberValue, error)

func (*NumberValue) ToProto

func (nv *NumberValue) ToProto() *protos.NumberValue

type ObjValue

type ObjValue struct {
	TotalCount   uint64
	DefaultCount uint64
	NullCount    uint64
	Fields       map[string]*ValueValue
}

func NewObjValue

func NewObjValue() *ObjValue

func NewObjValueFromProto

func NewObjValueFromProto(objValue *protos.ObjValue) (*ObjValue, error)

func (*ObjValue) ToProto

func (ov *ObjValue) ToProto() *protos.ObjValue

type StringValue

type StringValue struct {
	TotalCount   uint64
	DefaultCount uint64
	NullCount    uint64
	HyperLogLog  *HyperLogLog
	Length       *NumberStat
}

func NewStringValue

func NewStringValue() *StringValue

func NewStringValueFromProto

func NewStringValueFromProto(stringValue *protos.StringValue) (*StringValue, error)

func (*StringValue) ToProto

func (sv *StringValue) ToProto() *protos.StringValue

type ValueValue

type ValueValue struct {
	TotalCount uint64
	NullCount  uint64
	Number     *NumberValue
	String     *StringValue
	Boolean    *BooleanValue
	Array      *ArrayValue
	Obj        *ObjValue
}

func NewValueValue

func NewValueValue() *ValueValue

func NewValueValueFromProto

func NewValueValueFromProto(valueValue *protos.ValueValue) (*ValueValue, error)

func (*ValueValue) ToProto

func (vv *ValueValue) ToProto() *protos.ValueValue

Jump to

Keyboard shortcuts

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