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 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 ¶
type MinStat ¶
type MinStat struct {
Value float64
}
func NewMinStat ¶
func NewMinStat() *MinStat
func NewMinStatFromProto ¶
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
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
Click to show internal directories.
Click to hide internal directories.