query

package
v0.0.15 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AndQuery

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

func NewAndQuery

func NewAndQuery(queries []Query, checkers []check.Checker) (aq *AndQuery)

func (*AndQuery) Current

func (aq *AndQuery) Current() (document.DocId, error)

func (*AndQuery) DebugInfo

func (aq *AndQuery) DebugInfo() *debug.Debug

func (*AndQuery) GetGE

func (aq *AndQuery) GetGE(id document.DocId) (document.DocId, error)

func (*AndQuery) Marshal

func (aq *AndQuery) Marshal() map[string]interface{}

func (*AndQuery) MarshalV2 added in v0.0.14

func (aq *AndQuery) MarshalV2() *marshal.MarshalInfo

func (*AndQuery) Next

func (aq *AndQuery) Next()

func (*AndQuery) SetDebug

func (aq *AndQuery) SetDebug(level int)

func (*AndQuery) SetLabel added in v0.0.14

func (aq *AndQuery) SetLabel(label string)

func (*AndQuery) Unmarshal

func (aq *AndQuery) Unmarshal(idx index.Index, res map[string]interface{}) Query

func (*AndQuery) UnmarshalV2 added in v0.0.14

func (aq *AndQuery) UnmarshalV2(idx index.Index, marshalInfo *marshal.MarshalInfo) Query

type Expression

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

func NewExpression

func NewExpression(str string) *Expression

func (*Expression) GetStr

func (e *Expression) GetStr() string

func (*Expression) ToPostfix

func (e *Expression) ToPostfix(exp []string) []string

type Heap

type Heap []Query

func (Heap) Len

func (h Heap) Len() int

func (Heap) Less

func (h Heap) Less(i, j int) bool

func (*Heap) Pop

func (h *Heap) Pop() interface{}

func (*Heap) Push

func (h *Heap) Push(x interface{})

func (Heap) Swap

func (h Heap) Swap(i, j int)

func (*Heap) Top

func (h *Heap) Top() interface{}

type NotAndQuery

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

func NewNotAndQuery

func NewNotAndQuery(queries []Query, checkers []check.Checker) (naq *NotAndQuery)

func (*NotAndQuery) Current

func (naq *NotAndQuery) Current() (document.DocId, error)

func (*NotAndQuery) DebugInfo

func (naq *NotAndQuery) DebugInfo() *debug.Debug

func (*NotAndQuery) GetGE

func (naq *NotAndQuery) GetGE(id document.DocId) (document.DocId, error)

func (*NotAndQuery) Marshal

func (naq *NotAndQuery) Marshal() map[string]interface{}

func (*NotAndQuery) MarshalV2 added in v0.0.14

func (naq *NotAndQuery) MarshalV2() *marshal.MarshalInfo

func (*NotAndQuery) Next

func (naq *NotAndQuery) Next()

func (*NotAndQuery) SetDebug

func (naq *NotAndQuery) SetDebug(level int)

func (*NotAndQuery) SetLabel added in v0.0.14

func (naq *NotAndQuery) SetLabel(label string)

func (*NotAndQuery) Unmarshal

func (naq *NotAndQuery) Unmarshal(idx index.Index, res map[string]interface{}) Query

func (*NotAndQuery) UnmarshalV2 added in v0.0.14

func (naq *NotAndQuery) UnmarshalV2(idx index.Index, marshalInfo *marshal.MarshalInfo) Query

type OrQuery

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

func NewOrQuery

func NewOrQuery(queries []Query, checkers []check.Checker) (oq *OrQuery)

func (*OrQuery) Current

func (oq *OrQuery) Current() (document.DocId, error)

func (*OrQuery) DebugInfo

func (oq *OrQuery) DebugInfo() *debug.Debug

func (*OrQuery) GetGE

func (oq *OrQuery) GetGE(id document.DocId) (document.DocId, error)

func (*OrQuery) Marshal

func (oq *OrQuery) Marshal() map[string]interface{}

func (*OrQuery) MarshalV2 added in v0.0.14

func (oq *OrQuery) MarshalV2() *marshal.MarshalInfo

func (*OrQuery) Next

func (oq *OrQuery) Next()

func (*OrQuery) SetDebug

func (oq *OrQuery) SetDebug(level int)

func (*OrQuery) SetLabel added in v0.0.14

func (oq *OrQuery) SetLabel(label string)

func (*OrQuery) Unmarshal

func (oq *OrQuery) Unmarshal(idx index.Index, res map[string]interface{}) Query

func (*OrQuery) UnmarshalV2 added in v0.0.14

func (oq *OrQuery) UnmarshalV2(idx index.Index, marshalInfo *marshal.MarshalInfo) Query

type Query

type Query interface {
	Next()
	Current() (document.DocId, error)
	GetGE(id document.DocId) (document.DocId, error)

	Marshal() map[string]interface{}
	Unmarshal(idx index.Index, res map[string]interface{}) Query
	MarshalV2() *marshal.MarshalInfo
	UnmarshalV2(idx index.Index, info *marshal.MarshalInfo) Query
	DebugInfo() *debug.Debug
	SetDebug(level int)
	SetLabel(label string)
}

type SqlQuery

type SqlQuery struct {
	Node       *datastruct.TreeNode
	Stack      *datastruct.Stack
	Expression *Expression
	// contains filtered or unexported fields
}

func NewSqlQuery

func NewSqlQuery(str string, e operation.Operation, transfer bool) (s *SqlQuery)

func (*SqlQuery) LRD

func (sq *SqlQuery) LRD(idx index.Index) Query

type TermQuery

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

func NewTermQuery

func NewTermQuery(iter datastruct.Iterator) (tq *TermQuery)

func (*TermQuery) Current

func (tq *TermQuery) Current() (document.DocId, error)

func (*TermQuery) DebugInfo

func (tq *TermQuery) DebugInfo() *debug.Debug

func (*TermQuery) GetGE

func (tq *TermQuery) GetGE(id document.DocId) (document.DocId, error)

func (*TermQuery) Marshal

func (tq *TermQuery) Marshal() map[string]interface{}

func (*TermQuery) MarshalV2 added in v0.0.14

func (tq *TermQuery) MarshalV2() *marshal.MarshalInfo

func (*TermQuery) Next

func (tq *TermQuery) Next()

func (*TermQuery) SetDebug

func (tq *TermQuery) SetDebug(level int)

func (*TermQuery) SetLabel added in v0.0.14

func (tq *TermQuery) SetLabel(label string)

func (*TermQuery) Unmarshal

func (tq *TermQuery) Unmarshal(idx index.Index, res map[string]interface{}) Query

func (*TermQuery) UnmarshalV2 added in v0.0.14

func (tq *TermQuery) UnmarshalV2(idx index.Index, marshalInfo *marshal.MarshalInfo) Query

type Unmarshal

type Unmarshal struct {
}

func (*Unmarshal) Unmarshal

func (u *Unmarshal) Unmarshal(idx index.Index, res map[string]interface{}) interface{}

type UnmarshalV2 added in v0.0.14

type UnmarshalV2 struct {
}

func (*UnmarshalV2) UnmarshalV2 added in v0.0.14

func (u *UnmarshalV2) UnmarshalV2(idx index.Index, marshalInfo *marshal.MarshalInfo) interface{}

Jump to

Keyboard shortcuts

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