matcher

package
v0.0.0-...-714aee7 Latest Latest
Warning

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

Go to latest
Published: Aug 4, 2018 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckTables

func CheckTables(expr sql.Expression, ts TableSet) bool

func GetSubrule

func GetSubrule(expr sql.Expression, ts TableSet) sql.Expression

func GetValueForHash

func GetValueForHash(expr sql.Expression, ts TableSet) sql.Expression

func Indent

func Indent(i int) sql.TransformExprFunc

func Inspect

func Inspect(ts TableSet, expr sql.Expression) sql.Expression

func IsDominated

func IsDominated(expr sql.Expression) bool

func IsEqual

func IsEqual(expr sql.Expression) bool

Conservative equal(...)

func IsEqualAny

func IsEqualAny(expr sql.Expression) bool

func IsFieldOf

func IsFieldOf(expr sql.Expression, table string) (string, bool)

func IsSatisfiedEqual

func IsSatisfiedEqual(expr sql.Expression, ts TableSet) bool

func MinimumTables

func MinimumTables(tabs []*query.AdHocTable, expr sql.Expression) (i int)

func Unwrap

func Unwrap(e sql.Expression) (sql.Expression, error)

func Wrap

func Wrap(e sql.Expression) (sql.Expression, error)

Types

type AnnotExpr

type AnnotExpr struct {
	sql.Expression
	Stat StaticHint
}

func (*AnnotExpr) Children

func (a *AnnotExpr) Children() []sql.Expression

func (*AnnotExpr) String

func (a *AnnotExpr) String() string

type FieldSpecs

type FieldSpecs map[string]FieldSpecsTable

func GetIndex

func GetIndex(tabs []*query.AdHocTable, exprs []sql.Expression) (fs FieldSpecs)

func (FieldSpecs) String

func (fs FieldSpecs) String() string

type FieldSpecsTable

type FieldSpecsTable map[string][]sql.Expression

type NoneVar

type NoneVar struct{}

func (NoneVar) Children

func (NoneVar) Children() []sql.Expression

func (NoneVar) Eval

func (NoneVar) Eval(*sql.Context, sql.Row) (interface{}, error)

func (NoneVar) IsNullable

func (NoneVar) IsNullable() bool

func (NoneVar) Resolved

func (NoneVar) Resolved() bool

func (NoneVar) String

func (NoneVar) String() string

func (NoneVar) TransformUp

func (NoneVar) TransformUp(tef sql.TransformExprFunc) (sql.Expression, error)

func (NoneVar) Type

func (NoneVar) Type() sql.Type

type Predict

type Predict bool

func (Predict) Children

func (Predict) Children() []sql.Expression

func (Predict) Eval

func (p Predict) Eval(*sql.Context, sql.Row) (interface{}, error)

func (Predict) IsNullable

func (Predict) IsNullable() bool

func (Predict) Resolved

func (Predict) Resolved() bool

func (Predict) String

func (p Predict) String() string

func (Predict) TransformUp

func (p Predict) TransformUp(f sql.TransformExprFunc) (sql.Expression, error)

func (Predict) Type

func (Predict) Type() sql.Type

type StaticHint

type StaticHint uint
const (
	SHNone StaticHint = 1 << iota
	SHTrue
	SHFalse
	SHPass
)

func (StaticHint) Has

func (sh StaticHint) Has(o StaticHint) bool

type TableSet

type TableSet interface{ Has(s string) bool }

func TableSetFor

func TableSetFor(tabs []*query.AdHocTable) TableSet

type TableSetMap

type TableSetMap map[string]bool

func (TableSetMap) Has

func (t TableSetMap) Has(s string) bool

type TableSetSimple

type TableSetSimple string

func (TableSetSimple) Has

func (t TableSetSimple) Has(s string) bool

Jump to

Keyboard shortcuts

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