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 QuantileFromTDigestSketch
- type QuantileFromTDigestSketchField
- type QuantilesDoublesSketchField
- type QuantilesDoublesSketchToCDF
- func (q *QuantilesDoublesSketchToCDF) SetField(field *QuantilesDoublesSketchField) *QuantilesDoublesSketchToCDF
- func (q *QuantilesDoublesSketchToCDF) SetName(name string) *QuantilesDoublesSketchToCDF
- func (q *QuantilesDoublesSketchToCDF) SetSplitPoints(splitPoints []float64) *QuantilesDoublesSketchToCDF
- type QuantilesDoublesSketchToHistogram
- func (q *QuantilesDoublesSketchToHistogram) SetField(field *QuantilesDoublesSketchField) *QuantilesDoublesSketchToHistogram
- func (q *QuantilesDoublesSketchToHistogram) SetName(name string) *QuantilesDoublesSketchToHistogram
- func (q *QuantilesDoublesSketchToHistogram) SetNumBins(numBins int64) *QuantilesDoublesSketchToHistogram
- func (q *QuantilesDoublesSketchToHistogram) SetSplitPoints(splitPoints []float64) *QuantilesDoublesSketchToHistogram
- type QuantilesDoublesSketchToQuantile
- func (q *QuantilesDoublesSketchToQuantile) SetField(field *QuantilesDoublesSketchField) *QuantilesDoublesSketchToQuantile
- func (q *QuantilesDoublesSketchToQuantile) SetFraction(fraction float64) *QuantilesDoublesSketchToQuantile
- func (q *QuantilesDoublesSketchToQuantile) SetName(name string) *QuantilesDoublesSketchToQuantile
- type QuantilesDoublesSketchToQuantiles
- func (q *QuantilesDoublesSketchToQuantiles) SetField(field *QuantilesDoublesSketchField) *QuantilesDoublesSketchToQuantiles
- func (q *QuantilesDoublesSketchToQuantiles) SetFractions(fractions []float64) *QuantilesDoublesSketchToQuantiles
- func (q *QuantilesDoublesSketchToQuantiles) SetName(name string) *QuantilesDoublesSketchToQuantiles
- type QuantilesDoublesSketchToRank
- type QuantilesDoublesSketchToString
- 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 QuantileFromTDigestSketch ¶
type QuantileFromTDigestSketch struct { Base Fraction *float64 `json:"fraction,omitempty"` Field *QuantileFromTDigestSketchField `json:"field,omitempty"` }
QuantileFromTDigestSketch struct based on PostAggregator section in https://druid.apache.org/docs/latest/development/extensions-contrib/tdigestsketch-quantiles.html See the "Similar to quantilesFromTDigestSketch except it takes in a single fraction for computing quantile" section
func NewQuantileFromTDigestSketch ¶
func NewQuantileFromTDigestSketch() *QuantileFromTDigestSketch
NewQuantileFromTDigestSketch new instance of QuantileFromTDigestSketch
func (*QuantileFromTDigestSketch) SetField ¶
func (q *QuantileFromTDigestSketch) SetField(field *QuantileFromTDigestSketchField) *QuantileFromTDigestSketch
SetField set QuantileFromTDigestSketchField
func (*QuantileFromTDigestSketch) SetFraction ¶
func (q *QuantileFromTDigestSketch) SetFraction(fraction float64) *QuantileFromTDigestSketch
SetFraction set fraction
func (*QuantileFromTDigestSketch) SetName ¶
func (q *QuantileFromTDigestSketch) SetName(name string) *QuantileFromTDigestSketch
SetName set name
type QuantileFromTDigestSketchField ¶
type QuantileFromTDigestSketchField struct { Type string `json:"type,omitempty"` FieldName string `json:"fieldName,omitempty"` }
QuantileFromTDigestSketchField struct for Field in QuantileFromTDigestSketch
func NewQuantileFromTDigestSketchField ¶
func NewQuantileFromTDigestSketchField() *QuantileFromTDigestSketchField
NewQuantileFromTDigestSketchField new instance of QuantileFromTDigestSketchField
func (*QuantileFromTDigestSketchField) SetFieldName ¶
func (qf *QuantileFromTDigestSketchField) SetFieldName(fieldName string) *QuantileFromTDigestSketchField
SetFieldName set fieldName
func (*QuantileFromTDigestSketchField) SetType ¶
func (qf *QuantileFromTDigestSketchField) SetType(typ string) *QuantileFromTDigestSketchField
SetType set type
type QuantilesDoublesSketchField ¶
type QuantilesDoublesSketchField struct { Type string `json:"type,omitempty"` Name string `json:"name,omitempty"` FieldName string `json:"fieldName,omitempty"` }
QuantilesDoublesSketchField struct for Field in QuantilesDoublesSketch Post Aggregators
func NewQuantilesDoublesSketchField ¶
func NewQuantilesDoublesSketchField() *QuantilesDoublesSketchField
NewQuantilesDoublesSketchField new instance of QuantilesDoublesSketchField
func NewQuantilesDoublesSketchToQuantileField ¶
func NewQuantilesDoublesSketchToQuantileField() *QuantilesDoublesSketchField
NewQuantilesDoublesSketchToQuantileField new instance of QuantilesDoublesSketchField Deprecated: Use NewQuantilesDoublesSketchField instead. TODO: This function is a duplicate of "func NewQuantilesDoublesSketchField()" to keep backward compatible
func (*QuantilesDoublesSketchField) SetFieldName ¶
func (qf *QuantilesDoublesSketchField) SetFieldName(fieldName string) *QuantilesDoublesSketchField
SetFieldName set fieldName
func (*QuantilesDoublesSketchField) SetName ¶
func (qf *QuantilesDoublesSketchField) SetName(name string) *QuantilesDoublesSketchField
SetName set name
func (*QuantilesDoublesSketchField) SetType ¶
func (qf *QuantilesDoublesSketchField) SetType(typ string) *QuantilesDoublesSketchField
SetType set type
type QuantilesDoublesSketchToCDF ¶
type QuantilesDoublesSketchToCDF struct { Base Field *QuantilesDoublesSketchField `json:"field,omitempty"` SplitPoints []float64 `json:"splitPoints,omitempty"` }
QuantilesDoublesSketchToCDF struct based on PostAggregator section in https://druid.apache.org/docs/latest/development/extensions-core/datasketches-quantiles.html#cdf
func NewQuantilesDoublesSketchToCDF ¶
func NewQuantilesDoublesSketchToCDF() *QuantilesDoublesSketchToCDF
NewQuantilesDoublesSketchToCDF new instance of QuantilesDoublesSketchToCDF
func (*QuantilesDoublesSketchToCDF) SetField ¶
func (q *QuantilesDoublesSketchToCDF) SetField(field *QuantilesDoublesSketchField) *QuantilesDoublesSketchToCDF
SetField set QuantilesDoublesSketchField
func (*QuantilesDoublesSketchToCDF) SetName ¶
func (q *QuantilesDoublesSketchToCDF) SetName(name string) *QuantilesDoublesSketchToCDF
SetName set name
func (*QuantilesDoublesSketchToCDF) SetSplitPoints ¶
func (q *QuantilesDoublesSketchToCDF) SetSplitPoints(splitPoints []float64) *QuantilesDoublesSketchToCDF
SetSplitPoints set splitPoints
type QuantilesDoublesSketchToHistogram ¶
type QuantilesDoublesSketchToHistogram struct { Base Field *QuantilesDoublesSketchField `json:"field,omitempty"` SplitPoints []float64 `json:"splitPoints,omitempty"` NumBins int64 `json:"numBins,omitempty"` }
QuantilesDoublesSketchToHistogram struct based on PostAggregator section in https://druid.apache.org/docs/latest/development/extensions-core/datasketches-quantiles.html#histogram
func NewQuantilesDoublesSketchToHistogram ¶
func NewQuantilesDoublesSketchToHistogram() *QuantilesDoublesSketchToHistogram
NewQuantilesDoublesSketchToHistogram new instance of QuantilesDoublesSketchToHistogram
func (*QuantilesDoublesSketchToHistogram) SetField ¶
func (q *QuantilesDoublesSketchToHistogram) SetField(field *QuantilesDoublesSketchField) *QuantilesDoublesSketchToHistogram
SetField set QuantilesDoublesSketchField
func (*QuantilesDoublesSketchToHistogram) SetName ¶
func (q *QuantilesDoublesSketchToHistogram) SetName(name string) *QuantilesDoublesSketchToHistogram
SetName set name
func (*QuantilesDoublesSketchToHistogram) SetNumBins ¶
func (q *QuantilesDoublesSketchToHistogram) SetNumBins(numBins int64) *QuantilesDoublesSketchToHistogram
SetNumBins set namBins
func (*QuantilesDoublesSketchToHistogram) SetSplitPoints ¶
func (q *QuantilesDoublesSketchToHistogram) SetSplitPoints(splitPoints []float64) *QuantilesDoublesSketchToHistogram
SetSplitPoints set splitPoints
type QuantilesDoublesSketchToQuantile ¶
type QuantilesDoublesSketchToQuantile struct { Base Field *QuantilesDoublesSketchField `json:"field,omitempty"` Fraction *float64 `json:"fraction,omitempty"` }
QuantilesDoublesSketchToQuantile struct based on PostAggregator section in https://druid.apache.org/docs/latest/development/extensions-core/datasketches-quantiles.html#quantile
func NewQuantilesDoublesSketchToQuantile ¶
func NewQuantilesDoublesSketchToQuantile() *QuantilesDoublesSketchToQuantile
NewQuantilesDoublesSketchToQuantile new instance of QuantilesDoublesSketchToQuantile
func (*QuantilesDoublesSketchToQuantile) SetField ¶
func (q *QuantilesDoublesSketchToQuantile) SetField(field *QuantilesDoublesSketchField) *QuantilesDoublesSketchToQuantile
SetField set QuantilesDoublesSketchField
func (*QuantilesDoublesSketchToQuantile) SetFraction ¶
func (q *QuantilesDoublesSketchToQuantile) SetFraction(fraction float64) *QuantilesDoublesSketchToQuantile
SetFraction set fraction
func (*QuantilesDoublesSketchToQuantile) SetName ¶
func (q *QuantilesDoublesSketchToQuantile) SetName(name string) *QuantilesDoublesSketchToQuantile
SetName set name
type QuantilesDoublesSketchToQuantiles ¶
type QuantilesDoublesSketchToQuantiles struct { Base Field *QuantilesDoublesSketchField `json:"field,omitempty"` Fractions []float64 `json:"fractions,omitempty"` }
QuantilesDoublesSketchToQuantiles struct based on PostAggregator section in https://druid.apache.org/docs/latest/development/extensions-core/datasketches-quantiles.html#quantiles
func NewQuantilesDoublesSketchToQuantiles ¶
func NewQuantilesDoublesSketchToQuantiles() *QuantilesDoublesSketchToQuantiles
NewQuantilesDoublesSketchToQuantiles new instance of QuantilesDoublesSketchToHistogram
func (*QuantilesDoublesSketchToQuantiles) SetField ¶
func (q *QuantilesDoublesSketchToQuantiles) SetField(field *QuantilesDoublesSketchField) *QuantilesDoublesSketchToQuantiles
SetField set QuantilesDoublesSketchField
func (*QuantilesDoublesSketchToQuantiles) SetFractions ¶
func (q *QuantilesDoublesSketchToQuantiles) SetFractions(fractions []float64) *QuantilesDoublesSketchToQuantiles
SetFractions set fractions
func (*QuantilesDoublesSketchToQuantiles) SetName ¶
func (q *QuantilesDoublesSketchToQuantiles) SetName(name string) *QuantilesDoublesSketchToQuantiles
SetName set name
type QuantilesDoublesSketchToRank ¶
type QuantilesDoublesSketchToRank struct { Base Field *QuantilesDoublesSketchField `json:"field,omitempty"` Value *float64 `json:"value,omitempty"` }
QuantilesDoublesSketchToRank struct based on PostAggregator section in https://druid.apache.org/docs/latest/development/extensions-core/datasketches-quantiles.html#rank
func NewQuantilesDoublesSketchToRank ¶
func NewQuantilesDoublesSketchToRank() *QuantilesDoublesSketchToRank
NewQuantilesDoublesSketchToRank new instance of NewQuantilesDoublesSketchToRank
func (*QuantilesDoublesSketchToRank) SetField ¶
func (q *QuantilesDoublesSketchToRank) SetField(field *QuantilesDoublesSketchField) *QuantilesDoublesSketchToRank
SetField set QuantilesDoublesSketchField
func (*QuantilesDoublesSketchToRank) SetName ¶
func (q *QuantilesDoublesSketchToRank) SetName(name string) *QuantilesDoublesSketchToRank
SetName set name
func (*QuantilesDoublesSketchToRank) SetValue ¶
func (q *QuantilesDoublesSketchToRank) SetValue(value float64) *QuantilesDoublesSketchToRank
SetValue set value
type QuantilesDoublesSketchToString ¶
type QuantilesDoublesSketchToString struct { Base Field *QuantilesDoublesSketchField `json:"field,omitempty"` }
QuantilesDoublesSketchToString struct based on PostAggregator section in https://druid.apache.org/docs/latest/development/extensions-core/datasketches-quantiles.html#sketch-summary
func NewQuantilesDoublesSketchToString ¶
func NewQuantilesDoublesSketchToString() *QuantilesDoublesSketchToString
NewQuantilesDoublesSketchToString new instance of QuantilesDoublesSketchToString
func (*QuantilesDoublesSketchToString) SetField ¶
func (q *QuantilesDoublesSketchToString) SetField(field *QuantilesDoublesSketchField) *QuantilesDoublesSketchToString
SetField set QuantilesDoublesSketchField
func (*QuantilesDoublesSketchToString) SetName ¶
func (q *QuantilesDoublesSketchToString) SetName(name string) *QuantilesDoublesSketchToString
SetName set name
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
Source Files
¶
- arithmetic.go
- constant.go
- double_greatest.go
- double_least.go
- expression.go
- field_access.go
- finalizing_field_access.go
- hyper_unique_finalizing.go
- javascript.go
- long_greatest.go
- long_least.go
- post_aggregator.go
- quantile_from_tdigestsketch.go
- quantiles_doubles_sketch.go
- quantiles_doubles_sketch_to_cdf.go
- quantiles_doubles_sketch_to_histogram.go
- quantiles_doubles_sketch_to_quantile.go
- quantiles_doubles_sketch_to_quantiles.go
- quantiles_doubles_sketch_to_rank.go
- quantiles_doubles_sketch_to_string.go
- quantiles_from_tdigestsketch.go