Documentation ¶
Index ¶
- func Load(data []byte) (builder.PostAggregator, error)
- type Arithmetic
- type Base
- type Constant
- type DoubleGreatest
- type DoubleLeast
- type Expression
- type FieldAccess
- type FinalizingFieldAccess
- type HyperUniqueFinalizing
- type Javascript
- type LongGreatest
- type LongLeast
- type QuantilesFromTDigestSketch
- type QuantilesFromTDigestSketchField
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Arithmetic ¶
type Arithmetic struct { Base Fn string `json:"fn,omitempty"` Fields []builder.PostAggregator `json:"fields,omitempty"` Ordering string `json:"ordering,omitempty"` }
func NewArithmetic ¶
func NewArithmetic() *Arithmetic
func (*Arithmetic) SetFields ¶
func (a *Arithmetic) SetFields(fields []builder.PostAggregator) *Arithmetic
func (*Arithmetic) SetFn ¶
func (a *Arithmetic) SetFn(fn string) *Arithmetic
func (*Arithmetic) SetName ¶
func (a *Arithmetic) SetName(name string) *Arithmetic
func (*Arithmetic) SetOrdering ¶
func (a *Arithmetic) SetOrdering(ordering string) *Arithmetic
func (*Arithmetic) UnmarshalJSON ¶
func (a *Arithmetic) UnmarshalJSON(data []byte) error
type Base ¶
type Base struct { Typ builder.ComponentType `json:"type,omitempty"` Name string `json:"name,omitempty"` }
func (*Base) Type ¶
func (b *Base) Type() builder.ComponentType
type Constant ¶
func NewConstant ¶
func NewConstant() *Constant
type DoubleGreatest ¶
type DoubleGreatest struct { Base Fields []builder.PostAggregator `json:"fields,omitempty"` }
func NewDoubleGreatest ¶
func NewDoubleGreatest() *DoubleGreatest
func (*DoubleGreatest) SetFields ¶
func (d *DoubleGreatest) SetFields(fields []builder.PostAggregator) *DoubleGreatest
func (*DoubleGreatest) SetName ¶
func (d *DoubleGreatest) SetName(name string) *DoubleGreatest
func (*DoubleGreatest) UnmarshalJSON ¶
func (d *DoubleGreatest) UnmarshalJSON(data []byte) error
type DoubleLeast ¶
type DoubleLeast struct { Base Fields []builder.PostAggregator `json:"fields,omitempty"` }
func NewDoubleLeast ¶
func NewDoubleLeast() *DoubleLeast
func (*DoubleLeast) SetFields ¶
func (d *DoubleLeast) SetFields(fields []builder.PostAggregator) *DoubleLeast
func (*DoubleLeast) SetName ¶
func (d *DoubleLeast) SetName(name string) *DoubleLeast
func (*DoubleLeast) UnmarshalJSON ¶
func (d *DoubleLeast) UnmarshalJSON(data []byte) error
type Expression ¶
type Expression struct { Base Expression string `json:"expression,omitempty"` Ordering string `json:"ordering,omitempty"` }
func NewExpression ¶
func NewExpression() *Expression
func (*Expression) SetExpression ¶
func (e *Expression) SetExpression(expression string) *Expression
func (*Expression) SetName ¶
func (e *Expression) SetName(name string) *Expression
func (*Expression) SetOrdering ¶
func (e *Expression) SetOrdering(ordering string) *Expression
type FieldAccess ¶
func NewFieldAccess ¶
func NewFieldAccess() *FieldAccess
func (*FieldAccess) SetFieldName ¶
func (f *FieldAccess) SetFieldName(fieldName string) *FieldAccess
func (*FieldAccess) SetName ¶
func (f *FieldAccess) SetName(name string) *FieldAccess
type FinalizingFieldAccess ¶
func NewFinalizingFieldAccess ¶
func NewFinalizingFieldAccess() *FinalizingFieldAccess
func (*FinalizingFieldAccess) SetFieldName ¶
func (f *FinalizingFieldAccess) SetFieldName(fieldName string) *FinalizingFieldAccess
func (*FinalizingFieldAccess) SetName ¶
func (f *FinalizingFieldAccess) SetName(name string) *FinalizingFieldAccess
type HyperUniqueFinalizing ¶
func NewHyperUniqueFinalizing ¶
func NewHyperUniqueFinalizing() *HyperUniqueFinalizing
func (*HyperUniqueFinalizing) SetFieldName ¶
func (h *HyperUniqueFinalizing) SetFieldName(fieldName string) *HyperUniqueFinalizing
func (*HyperUniqueFinalizing) SetName ¶
func (h *HyperUniqueFinalizing) SetName(name string) *HyperUniqueFinalizing
type Javascript ¶
type Javascript struct { Base FieldNames []string `json:"fieldNames,omitempty"` Function string `json:"function,omitempty"` }
func NewJavascript ¶
func NewJavascript() *Javascript
func (*Javascript) SetFieldNames ¶
func (j *Javascript) SetFieldNames(fieldNames []string) *Javascript
func (*Javascript) SetFunction ¶
func (j *Javascript) SetFunction(function string) *Javascript
func (*Javascript) SetName ¶
func (j *Javascript) SetName(name string) *Javascript
type LongGreatest ¶
type LongGreatest struct { Base Fields []builder.PostAggregator `json:"fields,omitempty"` }
func NewLongGreatest ¶
func NewLongGreatest() *LongGreatest
func (*LongGreatest) SetFields ¶
func (l *LongGreatest) SetFields(fields []builder.PostAggregator) *LongGreatest
func (*LongGreatest) SetName ¶
func (l *LongGreatest) SetName(name string) *LongGreatest
func (*LongGreatest) UnmarshalJSON ¶
func (l *LongGreatest) UnmarshalJSON(data []byte) error
type LongLeast ¶
type LongLeast struct { Base Fields []builder.PostAggregator `json:"fields,omitempty"` }
func NewLongLeast ¶
func NewLongLeast() *LongLeast
func (*LongLeast) SetFields ¶
func (l *LongLeast) SetFields(fields []builder.PostAggregator) *LongLeast
func (*LongLeast) UnmarshalJSON ¶
type QuantilesFromTDigestSketch ¶
type QuantilesFromTDigestSketch struct { Base Fractions []float64 `json:"fractions,omitempty"` Field *QuantilesFromTDigestSketchField `json:"field,omitempty"` }
QuantilesFromTDigestSketch struct based on PostAggregator section in https://druid.apache.org/docs/latest/development/extensions-contrib/tdigestsketch-quantiles.html
func NewQuantilesFromTDigestSketch ¶
func NewQuantilesFromTDigestSketch() *QuantilesFromTDigestSketch
NewQuantilesFromTDigestSketch new instance of QuantilesFromTDigestSketch
func (*QuantilesFromTDigestSketch) SetField ¶
func (q *QuantilesFromTDigestSketch) SetField(field *QuantilesFromTDigestSketchField) *QuantilesFromTDigestSketch
SetField set QuantilesFromTDigestSketchField
func (*QuantilesFromTDigestSketch) SetFractions ¶
func (q *QuantilesFromTDigestSketch) SetFractions(fractions []float64) *QuantilesFromTDigestSketch
SetFractions set fractions
func (*QuantilesFromTDigestSketch) SetName ¶
func (q *QuantilesFromTDigestSketch) SetName(name string) *QuantilesFromTDigestSketch
SetName set name
type QuantilesFromTDigestSketchField ¶
type QuantilesFromTDigestSketchField struct { Type string `json:"type,omitempty"` FieldName string `json:"fieldName,omitempty"` }
QuantilesFromTDigestSketchField struct for Field in QuantilesFromTDigestSketch
func NewQuantilesFromTDigestSketchField ¶
func NewQuantilesFromTDigestSketchField() *QuantilesFromTDigestSketchField
NewQuantilesFromTDigestSketchField new instance of QuantilesFromTDigestSketchField
func (*QuantilesFromTDigestSketchField) SetFieldName ¶
func (qf *QuantilesFromTDigestSketchField) SetFieldName(fieldName string) *QuantilesFromTDigestSketchField
SetFieldName set fieldName
func (*QuantilesFromTDigestSketchField) SetType ¶
func (qf *QuantilesFromTDigestSketchField) SetType(typ string) *QuantilesFromTDigestSketchField
SetType set type
Click to show internal directories.
Click to hide internal directories.