postaggregation

package
v0.0.0-...-23e8124 Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2022 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ArithmeticPostAggregation

type ArithmeticPostAggregation struct {
	PostAggregationType PostAggregationType `json:"type"`
	Name                string              `json:"name,omitempty"`
	Function            string              `json:"fn"`
	Fields              []PostAggregator    `json:"fields"`
	Ordering            string              `json:"ordering,omitempty"`
}

func (ArithmeticPostAggregation) Type

type ConstantPostAggregation

type ConstantPostAggregation struct {
	PostAggregationType PostAggregationType `json:"type"`
	Name                string              `json:"name"`
	Value               string              `json:"value"`
}

func (ConstantPostAggregation) Type

type FieldAccessPostAggregation

type FieldAccessPostAggregation struct {
	PostAggregationType PostAggregationType `json:"type"`
	Name                string              `json:"name,omitempty"`
	FieldName           string              `json:"fieldName"`
}

FieldAccessPostAggregation can be hyperUniqueCardinality, fieldAccess, finalizingFieldAccess

func (FieldAccessPostAggregation) Type

type GreatestPostAggregation

type GreatestPostAggregation struct {
	PostAggregationType PostAggregationType `json:"type"`
	Name                string              `json:"name"`
	Fields              []PostAggregator    `json:"fields"`
}

DoubleGreatest, LongGreatest

func (GreatestPostAggregation) Type

type JavascriptPostAggregation

type JavascriptPostAggregation struct {
	PostAggregationType PostAggregationType `json:"type"`
	Name                string              `json:"name,omitempty"`
	FieldNames          []string            `json:"fieldNames"`
	Function            string              `json:"function"`
}

func (JavascriptPostAggregation) Type

type LeastPostAggregation

type LeastPostAggregation struct {
	PostAggregationType PostAggregationType `json:"type"`
	Name                string              `json:"name"`
	Fields              []PostAggregator    `json:"fields"`
}

DoubleLeast, LongLeast

func (LeastPostAggregation) Type

func (l LeastPostAggregation) Type() string

type PostAggregationType

type PostAggregationType int
const (
	Arithmetic PostAggregationType = iota
	FieldAccess
	FinalizingFieldAccess
	Constant
	DoubleGreatest
	LongGreatest
	DoubleLeast
	LongLeast
	Javascript
	HyperUniqueCardinality
)

func (PostAggregationType) MarshalJSON

func (p PostAggregationType) MarshalJSON() ([]byte, error)

func (PostAggregationType) Name

func (p PostAggregationType) Name() string

func (PostAggregationType) Ordinal

func (p PostAggregationType) Ordinal() int

func (PostAggregationType) Values

func (p PostAggregationType) Values() *[]string

type PostAggregator

type PostAggregator interface {
	Type() string
}

Jump to

Keyboard shortcuts

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