query

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: 12 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) Next

func (aq *AndQuery) Next()

func (*AndQuery) SetDebug

func (aq *AndQuery) SetDebug(level int)

func (*AndQuery) Unmarshal

func (aq *AndQuery) Unmarshal(idx *index.Indexer, res map[string]interface{}, e operation.Operation) 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, isDebug ...int) (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) Next

func (naq *NotAndQuery) Next()

func (*NotAndQuery) SetDebug

func (naq *NotAndQuery) SetDebug(level int)

func (*NotAndQuery) Unmarshal

func (naq *NotAndQuery) Unmarshal(idx *index.Indexer, res map[string]interface{}, e operation.Operation) 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) Next

func (oq *OrQuery) Next()

func (*OrQuery) SetDebug

func (oq *OrQuery) SetDebug(level int)

func (*OrQuery) Unmarshal

func (oq *OrQuery) Unmarshal(idx *index.Indexer, res map[string]interface{}, e operation.Operation) 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.Indexer, res map[string]interface{}, e operation.Operation) Query
	DebugInfo() *debug.Debug
	SetDebug(level int)
}

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.Indexer) 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) Next

func (tq *TermQuery) Next()

func (*TermQuery) SetDebug

func (tq *TermQuery) SetDebug(level int)

func (*TermQuery) Unmarshal

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

type UnmarshalQuery

type UnmarshalQuery struct {
}

func (*UnmarshalQuery) Unmarshal

func (u *UnmarshalQuery) Unmarshal(idx *index.Indexer, res map[string]interface{}, e operation.Operation) Query

Jump to

Keyboard shortcuts

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