expressions

package
v0.3.11-8 Latest Latest
Warning

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

Go to latest
Published: Oct 12, 2024 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AggregateExp

type AggregateExp struct {
	MeasureExps []MeasureExp
}

type AlignerExp

type AlignerExp struct {
	Input *PropertyExp `json:"input"`
}

type ArithmeticExp

type ArithmeticExp struct {
	ADD *OperatorExp `json:"add"`
	SUB *OperatorExp `json:"sub"`
}

type ConstExp

type ConstExp interface{}

type FilterExp

type FilterExp struct {
	LogicalExp
}

type LogicalExp

type LogicalExp struct {
	EQ  *OperatorExp  `json:"eq"`
	IN  *OperatorExp  `json:"in"`
	LT  *OperatorExp  `json:"lt"`
	GT  *OperatorExp  `json:"gt"`
	AND []*LogicalExp `json:"and"`
	OR  []*LogicalExp `json:"or"`
	NOT *LogicalExp   `json:"not"`
}

type MeasureExp

type MeasureExp struct {
	Mean *AlignerExp `json:"mean"`
	Min  *AlignerExp `json:"min"`
}

type OperatorExp

type OperatorExp struct {
	Left  *PropertyExp     `json:"left"`
	Right *PrimitiveObject `json:"right"`
}

type PrimitiveObject

type PrimitiveObject struct {
	PropertyExp
	ConstExp
}

type PrimitveType

type PrimitveType string
const (
	Bool     PrimitveType = "Bool"
	DateTime PrimitveType = "DateTime"
	Double   PrimitveType = "Double"
	String   PrimitveType = "String"
	Null     PrimitveType = "NULL"
)

type PropertyExp

type PropertyExp struct {
	Property string       `json:"property"`
	Type     PrimitveType `json:"type"`
}

Jump to

Keyboard shortcuts

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