postaggregation

package
v0.0.9 Latest Latest
Warning

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

Go to latest
Published: Jan 31, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Load

func Load(data []byte) (builder.PostAggregator, error)

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) SetName

func (b *Base) SetName(name string) *Base

func (*Base) SetType

func (b *Base) SetType(typ builder.ComponentType) *Base

func (*Base) Type

func (b *Base) Type() builder.ComponentType

type Constant

type Constant struct {
	Base
	Value *float64 `json:"value,omitempty"`
}

func NewConstant

func NewConstant() *Constant

func (*Constant) SetName

func (c *Constant) SetName(name string) *Constant

func (*Constant) SetValue

func (c *Constant) SetValue(value float64) *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

type FieldAccess struct {
	Base
	FieldName string `json:"fieldName,omitempty"`
}

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

type FinalizingFieldAccess struct {
	Base
	FieldName string `json:"fieldName,omitempty"`
}

func NewFinalizingFieldAccess

func NewFinalizingFieldAccess() *FinalizingFieldAccess

func (*FinalizingFieldAccess) SetFieldName

func (f *FinalizingFieldAccess) SetFieldName(fieldName string) *FinalizingFieldAccess

func (*FinalizingFieldAccess) SetName

type HyperUniqueFinalizing

type HyperUniqueFinalizing struct {
	Base
	FieldName string `json:"fieldName,omitempty"`
}

func NewHyperUniqueFinalizing

func NewHyperUniqueFinalizing() *HyperUniqueFinalizing

func (*HyperUniqueFinalizing) SetFieldName

func (h *HyperUniqueFinalizing) SetFieldName(fieldName string) *HyperUniqueFinalizing

func (*HyperUniqueFinalizing) SetName

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) SetName

func (l *LongLeast) SetName(name string) *LongLeast

func (*LongLeast) UnmarshalJSON

func (l *LongLeast) UnmarshalJSON(data []byte) error

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

SetField set QuantileFromTDigestSketchField

func (*QuantileFromTDigestSketch) SetFraction

SetFraction set fraction

func (*QuantileFromTDigestSketch) SetName

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

SetFieldName set fieldName

func (*QuantileFromTDigestSketchField) SetType

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

SetName set name

func (*QuantilesDoublesSketchField) SetType

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

SetField set QuantilesDoublesSketchField

func (*QuantilesDoublesSketchToCDF) SetName

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

SetField set QuantilesDoublesSketchField

func (*QuantilesDoublesSketchToHistogram) SetName

SetName set name

func (*QuantilesDoublesSketchToHistogram) SetNumBins

SetNumBins set namBins

func (*QuantilesDoublesSketchToHistogram) SetSplitPoints

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

SetField set QuantilesDoublesSketchField

func (*QuantilesDoublesSketchToQuantile) SetFraction

SetFraction set fraction

func (*QuantilesDoublesSketchToQuantile) SetName

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

SetField set QuantilesDoublesSketchField

func (*QuantilesDoublesSketchToQuantiles) SetFractions

SetFractions set fractions

func (*QuantilesDoublesSketchToQuantiles) SetName

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

SetField set QuantilesDoublesSketchField

func (*QuantilesDoublesSketchToRank) SetName

SetName set name

func (*QuantilesDoublesSketchToRank) SetValue

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

SetField set QuantilesDoublesSketchField

func (*QuantilesDoublesSketchToString) SetName

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

SetField set QuantilesFromTDigestSketchField

func (*QuantilesFromTDigestSketch) SetFractions

func (q *QuantilesFromTDigestSketch) SetFractions(fractions []float64) *QuantilesFromTDigestSketch

SetFractions set fractions

func (*QuantilesFromTDigestSketch) SetName

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

SetFieldName set fieldName

func (*QuantilesFromTDigestSketchField) SetType

SetType set type

Jump to

Keyboard shortcuts

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