filter

package
v0.13.0 Latest Latest
Warning

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

Go to latest
Published: Jan 29, 2025 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ArrayContainedBy = "a_containedBy"
	ArrayContains    = "a_contains"
	ArrayEquals      = "a_equals"
	ArrayOverlaps    = "a_overlaps"
)
View Source
const (
	Equals              = "="
	NotEquals           = "<>"
	LessThan            = "<"
	LessThanOrEquals    = "<="
	GreaterThan         = ">"
	GreaterThanOrEquals = ">="
)
View Source
const (
	GeometryContains   = "s_contains"
	GeometryCrosses    = "s_crosses"
	GeometryDisjoint   = "s_disjoint"
	GeometryEquals     = "s_equals"
	GeometryIntersects = "s_intersects"
	GeometryOverlaps   = "s_overlaps"
	GeometryTouches    = "s_touches"
	GeometryWithin     = "s_within"
)
View Source
const (
	TimeAfter        = "t_after"
	TimeBefore       = "t_before"
	TimeContains     = "t_contains"
	TimeDisjoint     = "t_disjoint"
	TimeDuring       = "t_during"
	TimeEquals       = "t_equals"
	TimeFinishedBy   = "t_finishedBy"
	TimeFinishes     = "t_finishes"
	TimeIntersects   = "t_intersects"
	TimeMeets        = "t_meets"
	TimeMetBy        = "t_metBy"
	TimeOverlappedBy = "t_overlappedBy"
	TimeOverlaps     = "t_overlaps"
	TimeStartedBy    = "t_startedBy"
	TimeStarts       = "t_starts"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type AccentInsensitive

type AccentInsensitive struct {
	Value CharacterExpression
}

func (*AccentInsensitive) MarshalJSON

func (e *AccentInsensitive) MarshalJSON() ([]byte, error)

func (*AccentInsensitive) String added in v0.13.0

func (e *AccentInsensitive) String() string

type And

type And struct {
	Args []BooleanExpression
}

func (*And) MarshalJSON

func (e *And) MarshalJSON() ([]byte, error)

func (*And) String added in v0.13.0

func (e *And) String() string

type Array

type Array []ArrayItemExpression

func (Array) String added in v0.13.0

func (a Array) String() string

type ArrayComparison

type ArrayComparison struct {
	Name  string
	Left  ArrayExpression
	Right ArrayExpression
}

func (*ArrayComparison) MarshalJSON

func (e *ArrayComparison) MarshalJSON() ([]byte, error)

func (*ArrayComparison) String added in v0.13.0

func (e *ArrayComparison) String() string

type ArrayExpression

type ArrayExpression interface {
	Expression
	// contains filtered or unexported methods
}

type ArrayItemExpression

type ArrayItemExpression interface {
	Expression
	// contains filtered or unexported methods
}

type Between

type Between struct {
	Value NumericExpression
	Low   NumericExpression
	High  NumericExpression
}

func (*Between) MarshalJSON

func (e *Between) MarshalJSON() ([]byte, error)

func (*Between) String added in v0.13.0

func (e *Between) String() string

type Boolean

type Boolean struct {
	Value bool
}

func (*Boolean) MarshalJSON

func (e *Boolean) MarshalJSON() ([]byte, error)

func (*Boolean) String added in v0.13.0

func (e *Boolean) String() string

type BooleanExpression

type BooleanExpression interface {
	ScalarExpression
	// contains filtered or unexported methods
}

type BoundingBox

type BoundingBox struct {
	Extent []float64
}

func (*BoundingBox) MarshalJSON

func (e *BoundingBox) MarshalJSON() ([]byte, error)

func (*BoundingBox) String added in v0.13.0

func (e *BoundingBox) String() string

type CaseInsensitive

type CaseInsensitive struct {
	Value CharacterExpression
}

func (*CaseInsensitive) MarshalJSON

func (e *CaseInsensitive) MarshalJSON() ([]byte, error)

func (*CaseInsensitive) String added in v0.13.0

func (e *CaseInsensitive) String() string

type CharacterExpression

type CharacterExpression interface {
	ScalarExpression
	// contains filtered or unexported methods
}

type Comparison

type Comparison struct {
	Name  string
	Left  ScalarExpression
	Right ScalarExpression
}

func (*Comparison) MarshalJSON

func (e *Comparison) MarshalJSON() ([]byte, error)

func (*Comparison) String added in v0.13.0

func (e *Comparison) String() string

type Date

type Date struct {
	Value time.Time
}

func (*Date) MarshalJSON

func (e *Date) MarshalJSON() ([]byte, error)

func (*Date) String added in v0.13.0

func (e *Date) String() string

type Expression

type Expression interface {
	String() string
	// contains filtered or unexported methods
}

type Filter

type Filter struct {
	Expression BooleanExpression
}

func (*Filter) MarshalJSON

func (f *Filter) MarshalJSON() ([]byte, error)

func (*Filter) String added in v0.13.0

func (e *Filter) String() string

func (*Filter) UnmarshalJSON

func (f *Filter) UnmarshalJSON(data []byte) error

type Function

type Function struct {
	Op   string       `json:"op"`
	Args []Expression `json:"args"`
}

func (*Function) MarshalJSON

func (e *Function) MarshalJSON() ([]byte, error)

func (*Function) String added in v0.13.0

func (e *Function) String() string

type Geometry

type Geometry struct {
	Value any
}

func (*Geometry) MarshalJSON

func (e *Geometry) MarshalJSON() ([]byte, error)

func (*Geometry) String added in v0.13.0

func (e *Geometry) String() string

type In

type In struct {
	Item ScalarExpression
	List ScalarList
}

func (*In) MarshalJSON

func (e *In) MarshalJSON() ([]byte, error)

func (*In) String added in v0.13.0

func (e *In) String() string

type InstantExpression

type InstantExpression interface {
	TemporalExpression
	ScalarExpression
}

type Interval

type Interval struct {
	Start InstantExpression
	End   InstantExpression
}

func (*Interval) MarshalJSON

func (e *Interval) MarshalJSON() ([]byte, error)

func (*Interval) String added in v0.13.0

func (e *Interval) String() string

type IsNull

type IsNull struct {
	Value Expression
}

func (*IsNull) MarshalJSON

func (e *IsNull) MarshalJSON() ([]byte, error)

func (*IsNull) String added in v0.13.0

func (e *IsNull) String() string

type Like

type Like struct {
	Value   CharacterExpression
	Pattern PatternExpression
}

func (*Like) MarshalJSON

func (e *Like) MarshalJSON() ([]byte, error)

func (*Like) String

func (e *Like) String() string

type Not

type Not struct {
	Arg BooleanExpression
}

func (*Not) MarshalJSON

func (e *Not) MarshalJSON() ([]byte, error)

func (*Not) String added in v0.13.0

func (e *Not) String() string

type Number

type Number struct {
	Value float64
}

func (*Number) MarshalJSON

func (e *Number) MarshalJSON() ([]byte, error)

func (*Number) String added in v0.13.0

func (e *Number) String() string

type NumericExpression

type NumericExpression interface {
	ScalarExpression
	// contains filtered or unexported methods
}

type Or

type Or struct {
	Args []BooleanExpression
}

func (*Or) MarshalJSON

func (e *Or) MarshalJSON() ([]byte, error)

func (*Or) String added in v0.13.0

func (e *Or) String() string

type PatternExpression

type PatternExpression interface {
	Expression
	// contains filtered or unexported methods
}

type Property

type Property struct {
	Name string
}

func (*Property) MarshalJSON

func (e *Property) MarshalJSON() ([]byte, error)

func (*Property) String added in v0.13.0

func (e *Property) String() string

type ScalarExpression

type ScalarExpression interface {
	Expression
	// contains filtered or unexported methods
}

type ScalarList

type ScalarList []ScalarExpression

func (ScalarList) String added in v0.13.0

func (e ScalarList) String() string

type SpatialComparison

type SpatialComparison struct {
	Name  string
	Left  SpatialExpression
	Right SpatialExpression
}

func (*SpatialComparison) MarshalJSON

func (e *SpatialComparison) MarshalJSON() ([]byte, error)

func (*SpatialComparison) String added in v0.13.0

func (e *SpatialComparison) String() string

type SpatialExpression

type SpatialExpression interface {
	Expression
	// contains filtered or unexported methods
}

type String

type String struct {
	Value string
}

func (*String) MarshalJSON

func (e *String) MarshalJSON() ([]byte, error)

func (*String) String added in v0.13.0

func (e *String) String() string

type TemporalComparison

type TemporalComparison struct {
	Name  string
	Left  TemporalExpression
	Right TemporalExpression
}

func (*TemporalComparison) MarshalJSON

func (e *TemporalComparison) MarshalJSON() ([]byte, error)

func (*TemporalComparison) String added in v0.13.0

func (e *TemporalComparison) String() string

type TemporalExpression

type TemporalExpression interface {
	Expression
	// contains filtered or unexported methods
}

type Timestamp

type Timestamp struct {
	Value time.Time
}

func (*Timestamp) MarshalJSON

func (e *Timestamp) MarshalJSON() ([]byte, error)

func (*Timestamp) String added in v0.13.0

func (e *Timestamp) String() string

Jump to

Keyboard shortcuts

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