predicate

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2020 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const FactoryID = -32

Variables

This section is empty.

Functions

This section is empty.

Types

type And

type And struct {
	// contains filtered or unexported fields
}

func NewAnd

func NewAnd(predicates []interface{}) *And

func (And) ClassID

func (p And) ClassID() int32

func (And) FactoryID

func (And) FactoryID() int32

func (*And) ReadData

func (ap *And) ReadData(input serialization.DataInput) error

func (*And) WriteData

func (ap *And) WriteData(output serialization.DataOutput) error

type Between

type Between struct {
	// contains filtered or unexported fields
}

func NewBetween

func NewBetween(field string, from interface{}, to interface{}) *Between

func (Between) ClassID

func (p Between) ClassID() int32

func (Between) FactoryID

func (Between) FactoryID() int32

func (*Between) ReadData

func (bp *Between) ReadData(input serialization.DataInput) error

func (*Between) WriteData

func (bp *Between) WriteData(output serialization.DataOutput) error

type Equal

type Equal struct {
	// contains filtered or unexported fields
}

func NewEqual

func NewEqual(field string, value interface{}) *Equal

func (Equal) ClassID

func (p Equal) ClassID() int32

func (Equal) FactoryID

func (Equal) FactoryID() int32

func (*Equal) ReadData

func (ep *Equal) ReadData(input serialization.DataInput) error

func (*Equal) WriteData

func (ep *Equal) WriteData(output serialization.DataOutput) error

type Factory

type Factory struct {
}

func NewFactory

func NewFactory() *Factory

func (*Factory) Create

type False

type False struct {
	// contains filtered or unexported fields
}

func NewFalse

func NewFalse() *False

func (False) ClassID

func (p False) ClassID() int32

func (False) FactoryID

func (False) FactoryID() int32

func (*False) ReadData

func (fp *False) ReadData(input serialization.DataInput) error

func (*False) WriteData

func (fp *False) WriteData(output serialization.DataOutput) error

type GreaterLess

type GreaterLess struct {
	// contains filtered or unexported fields
}

func NewGreaterLess

func NewGreaterLess(field string, value interface{}, equal bool, less bool) *GreaterLess

func (GreaterLess) ClassID

func (p GreaterLess) ClassID() int32

func (GreaterLess) FactoryID

func (GreaterLess) FactoryID() int32

func (*GreaterLess) ReadData

func (glp *GreaterLess) ReadData(input serialization.DataInput) error

func (*GreaterLess) WriteData

func (glp *GreaterLess) WriteData(output serialization.DataOutput) error

type ILike

type ILike struct {
	*Like
}

func NewILike

func NewILike(field string, expr string) *ILike

func (ILike) ClassID

func (p ILike) ClassID() int32

func (ILike) FactoryID

func (ILike) FactoryID() int32

func (*ILike) ReadData

func (ilp *ILike) ReadData(input serialization.DataInput) error

type In

type In struct {
	// contains filtered or unexported fields
}

func NewIn

func NewIn(field string, values []interface{}) *In

func (In) ClassID

func (p In) ClassID() int32

func (In) FactoryID

func (In) FactoryID() int32

func (*In) ReadData

func (ip *In) ReadData(input serialization.DataInput) error

func (*In) WriteData

func (ip *In) WriteData(output serialization.DataOutput) error

type InstanceOf

type InstanceOf struct {
	// contains filtered or unexported fields
}

func NewInstanceOf

func NewInstanceOf(className string) *InstanceOf

func (InstanceOf) ClassID

func (p InstanceOf) ClassID() int32

func (InstanceOf) FactoryID

func (InstanceOf) FactoryID() int32

func (*InstanceOf) ReadData

func (iop *InstanceOf) ReadData(input serialization.DataInput) error

func (*InstanceOf) WriteData

func (iop *InstanceOf) WriteData(output serialization.DataOutput) error

type Like

type Like struct {
	// contains filtered or unexported fields
}

func NewLike

func NewLike(field string, expr string) *Like

func (Like) ClassID

func (p Like) ClassID() int32

func (Like) FactoryID

func (Like) FactoryID() int32

func (*Like) ReadData

func (lp *Like) ReadData(input serialization.DataInput) error

func (*Like) WriteData

func (lp *Like) WriteData(output serialization.DataOutput) error

type Not

type Not struct {
	// contains filtered or unexported fields
}

func NewNot

func NewNot(pred interface{}) *Not

func (Not) ClassID

func (p Not) ClassID() int32

func (Not) FactoryID

func (Not) FactoryID() int32

func (*Not) ReadData

func (np *Not) ReadData(input serialization.DataInput) error

func (*Not) WriteData

func (np *Not) WriteData(output serialization.DataOutput) error

type NotEqual

type NotEqual struct {
	*Equal
}

func NewNotEqual

func NewNotEqual(field string, value interface{}) *NotEqual

func (NotEqual) ClassID

func (p NotEqual) ClassID() int32

func (NotEqual) FactoryID

func (NotEqual) FactoryID() int32

func (*NotEqual) ReadData

func (nep *NotEqual) ReadData(input serialization.DataInput) error

type Or

type Or struct {
	// contains filtered or unexported fields
}

func NewOr

func NewOr(predicates []interface{}) *Or

func (Or) ClassID

func (p Or) ClassID() int32

func (Or) FactoryID

func (Or) FactoryID() int32

func (*Or) ReadData

func (or *Or) ReadData(input serialization.DataInput) error

func (*Or) WriteData

func (or *Or) WriteData(output serialization.DataOutput) error

type Regex

type Regex struct {
	// contains filtered or unexported fields
}

func NewRegex

func NewRegex(field string, regex string) *Regex

func (Regex) ClassID

func (p Regex) ClassID() int32

func (Regex) FactoryID

func (Regex) FactoryID() int32

func (*Regex) ReadData

func (rp *Regex) ReadData(input serialization.DataInput) error

func (*Regex) WriteData

func (rp *Regex) WriteData(output serialization.DataOutput) error

type SQL

type SQL struct {
	// contains filtered or unexported fields
}

func NewSQL

func NewSQL(sql string) *SQL

func (SQL) ClassID

func (p SQL) ClassID() int32

func (SQL) FactoryID

func (SQL) FactoryID() int32

func (*SQL) ReadData

func (sp *SQL) ReadData(input serialization.DataInput) error

func (*SQL) WriteData

func (sp *SQL) WriteData(output serialization.DataOutput) error

type True

type True struct {
	// contains filtered or unexported fields
}

func NewTrue

func NewTrue() *True

func (True) ClassID

func (p True) ClassID() int32

func (True) FactoryID

func (True) FactoryID() int32

func (*True) ReadData

func (tp *True) ReadData(input serialization.DataInput) error

func (*True) WriteData

func (tp *True) WriteData(output serialization.DataOutput) error

Jump to

Keyboard shortcuts

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