operation

package
v0.0.0-...-27f04c1 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	EQ  = iota // 相等
	NE         // 不等
	LE         // 小于等于
	GE         // 大于等于
	LT         // 小于
	GT         // 大于
	AND        // 与
	OR         // 或
	NOT        // 非
	IN         // 范围
)
View Source
const (
	InvalidDocid = 0xffffffff
)

Variables

This section is empty.

Functions

This section is empty.

Types

type OP

type OP int64

type Operation

type Operation interface {
	Equal(value interface{}) bool
	Less(value interface{}) bool
	In(value interface{}) bool
	SetValue(value interface{})
}

type Operations

type Operations struct {
	FieldValue interface{}
}

func NewOperations

func NewOperations(fieldValue interface{}) *Operations

func (*Operations) Equal

func (ee *Operations) Equal(value interface{}) bool

func (*Operations) In

func (ee *Operations) In(value interface{}) bool

func (*Operations) Less

func (ee *Operations) Less(value interface{}) bool

func (*Operations) SetValue

func (ee *Operations) SetValue(value interface{})

Jump to

Keyboard shortcuts

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