Documentation ¶
Index ¶
- Variables
- func MakeCountFunction(config map[string]interface{}) (aggregate.Function, error)
- func MakeUniquesFunction(config map[string]interface{}) (aggregate.Function, error)
- type Count
- type FunctionMaker
- type Int64
- type Max
- type Mean
- type Median
- type Min
- type StringBoolMap
- type Uniques
- type Variance
Constants ¶
This section is empty.
Variables ¶
View Source
var CountForm = forms.Form{ ErrorMsg: "invalid data encountered in the count config", Fields: []forms.Field{ { Name: "epsilon", Validators: []forms.Validator{ forms.IsOptional{Default: 0.5}, forms.IsFloat{HasMin: true, Min: 0.01, HasMax: false}, }, }, { Name: "treshold", Validators: []forms.Validator{ forms.IsOptional{Default: 0}, forms.IsInteger{HasMin: true, Min: 0, HasMax: false}, }, }, }, }
View Source
var Functions = map[string]FunctionMaker{ "count": MakeCountFunction, "uniques": MakeUniquesFunction, }
View Source
var UniquesForm = forms.Form{ ErrorMsg: "invalid data encountered in the uniques config", Fields: []forms.Field{ { Name: "id", Validators: []forms.Validator{ forms.IsRequired{}, forms.IsString{}, }, }, { Name: "epsilon", Validators: []forms.Validator{ forms.IsOptional{Default: 0.5}, forms.IsFloat{HasMin: true, Min: 0.01, HasMax: false}, }, }, }, }
Functions ¶
func MakeCountFunction ¶
Types ¶
type StringBoolMap ¶
func (*StringBoolMap) Deserialize ¶
func (m *StringBoolMap) Deserialize(buf []byte) error
func (*StringBoolMap) Serialize ¶
func (m *StringBoolMap) Serialize() ([]byte, error)
Click to show internal directories.
Click to hide internal directories.