postaggregation

package
v0.0.4-0...-a9841f4 Latest Latest
Warning

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

Go to latest
Published: May 30, 2021 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 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