Documentation ¶
Index ¶
- type AndQuery
- func (aq *AndQuery) Current() (document.DocId, error)
- func (aq *AndQuery) DebugInfo() *debug.Debug
- func (aq *AndQuery) GetGE(id document.DocId) (document.DocId, error)
- func (aq *AndQuery) Marshal() map[string]interface{}
- func (aq *AndQuery) MarshalV2() *marshal.MarshalInfo
- func (aq *AndQuery) Next()
- func (aq *AndQuery) SetDebug(level int)
- func (aq *AndQuery) SetLabel(label string)
- func (aq *AndQuery) Unmarshal(idx index.Index, res map[string]interface{}) Query
- func (aq *AndQuery) UnmarshalV2(idx index.Index, marshalInfo *marshal.MarshalInfo) Query
- type Expression
- type Heap
- type NotAndQuery
- func (naq *NotAndQuery) Current() (document.DocId, error)
- func (naq *NotAndQuery) DebugInfo() *debug.Debug
- func (naq *NotAndQuery) GetGE(id document.DocId) (document.DocId, error)
- func (naq *NotAndQuery) Marshal() map[string]interface{}
- func (naq *NotAndQuery) MarshalV2() *marshal.MarshalInfo
- func (naq *NotAndQuery) Next()
- func (naq *NotAndQuery) SetDebug(level int)
- func (naq *NotAndQuery) SetLabel(label string)
- func (naq *NotAndQuery) Unmarshal(idx index.Index, res map[string]interface{}) Query
- func (naq *NotAndQuery) UnmarshalV2(idx index.Index, marshalInfo *marshal.MarshalInfo) Query
- type OrQuery
- func (oq *OrQuery) Current() (document.DocId, error)
- func (oq *OrQuery) DebugInfo() *debug.Debug
- func (oq *OrQuery) GetGE(id document.DocId) (document.DocId, error)
- func (oq *OrQuery) Marshal() map[string]interface{}
- func (oq *OrQuery) MarshalV2() *marshal.MarshalInfo
- func (oq *OrQuery) Next()
- func (oq *OrQuery) SetDebug(level int)
- func (oq *OrQuery) SetLabel(label string)
- func (oq *OrQuery) Unmarshal(idx index.Index, res map[string]interface{}) Query
- func (oq *OrQuery) UnmarshalV2(idx index.Index, marshalInfo *marshal.MarshalInfo) Query
- type Query
- type SqlQuery
- type TermQuery
- func (tq *TermQuery) Current() (document.DocId, error)
- func (tq *TermQuery) DebugInfo() *debug.Debug
- func (tq *TermQuery) GetGE(id document.DocId) (document.DocId, error)
- func (tq *TermQuery) Marshal() map[string]interface{}
- func (tq *TermQuery) MarshalV2() *marshal.MarshalInfo
- func (tq *TermQuery) Next()
- func (tq *TermQuery) SetDebug(level int)
- func (tq *TermQuery) SetLabel(label string)
- func (tq *TermQuery) Unmarshal(idx index.Index, res map[string]interface{}) Query
- func (tq *TermQuery) UnmarshalV2(idx index.Index, marshalInfo *marshal.MarshalInfo) Query
- type Unmarshal
- type UnmarshalV2
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 (*AndQuery) MarshalV2 ¶ added in v0.0.14
func (aq *AndQuery) MarshalV2() *marshal.MarshalInfo
func (*AndQuery) UnmarshalV2 ¶ added in v0.0.14
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 NotAndQuery ¶
type NotAndQuery struct {
// contains filtered or unexported fields
}
func NewNotAndQuery ¶
func NewNotAndQuery(queries []Query, checkers []check.Checker) (naq *NotAndQuery)
func (*NotAndQuery) DebugInfo ¶
func (naq *NotAndQuery) DebugInfo() *debug.Debug
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 (*OrQuery) MarshalV2 ¶ added in v0.0.14
func (oq *OrQuery) MarshalV2() *marshal.MarshalInfo
func (*OrQuery) UnmarshalV2 ¶ added in v0.0.14
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 }
type TermQuery ¶
type TermQuery struct {
// contains filtered or unexported fields
}
func NewTermQuery ¶
func NewTermQuery(iter datastruct.Iterator) (tq *TermQuery)
func (*TermQuery) MarshalV2 ¶ added in v0.0.14
func (tq *TermQuery) MarshalV2() *marshal.MarshalInfo
func (*TermQuery) UnmarshalV2 ¶ added in v0.0.14
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{}
Click to show internal directories.
Click to hide internal directories.