Documentation
¶
Index ¶
- Constants
- type BaseOperator
- func (this *BaseOperator) Evaluate(e ast.Expression, item *dparval.Value) (*dparval.Value, error)
- func (this *BaseOperator) GetChannels() (dparval.ValueChannel, PipelineSupportChannel)
- func (this *BaseOperator) RecoverPanic()
- func (this *BaseOperator) RunOperator(oper Operator, stopChannel misc.StopChannel)
- func (this *BaseOperator) SendError(err query.Error) bool
- func (this *BaseOperator) SendItem(item *dparval.Value) bool
- func (this *BaseOperator) SendOther(obj interface{}) bool
- func (this *BaseOperator) SetQuery(q network.Query)
- func (this *BaseOperator) SetSource(source Operator)
- type CreateIndex
- func (this *CreateIndex) GetChannels() (dparval.ValueChannel, PipelineSupportChannel)
- func (this *CreateIndex) RecoverPanic()
- func (this *CreateIndex) Run(stopChannel misc.StopChannel)
- func (this *CreateIndex) SendError(err query.Error) bool
- func (this *CreateIndex) SendItem(item *dparval.Value) bool
- func (this *CreateIndex) SetQuery(q network.Query)
- func (this *CreateIndex) SetSource(source Operator)
- type DocumentJoin
- type DropIndex
- func (this *DropIndex) GetChannels() (dparval.ValueChannel, PipelineSupportChannel)
- func (this *DropIndex) RecoverPanic()
- func (this *DropIndex) Run(stopChannel misc.StopChannel)
- func (this *DropIndex) SendError(err query.Error) bool
- func (this *DropIndex) SendItem(item *dparval.Value) bool
- func (this *DropIndex) SetQuery(q network.Query)
- func (this *DropIndex) SetSource(source Operator)
- type EliminateDuplicates
- type ExecutablePipeline
- type Explain
- func (this *Explain) GetChannels() (dparval.ValueChannel, PipelineSupportChannel)
- func (this *Explain) RecoverPanic()
- func (this *Explain) Run(stopChannel misc.StopChannel)
- func (this *Explain) SendError(err query.Error) bool
- func (this *Explain) SendItem(item *dparval.Value) bool
- func (this *Explain) SetQuery(q network.Query)
- func (this *Explain) SetSource(source Operator)
- type FastCount
- func (this *FastCount) GetChannels() (dparval.ValueChannel, PipelineSupportChannel)
- func (this *FastCount) RecoverPanic()
- func (this *FastCount) Run(stopChannel misc.StopChannel)
- func (this *FastCount) SendError(err query.Error) bool
- func (this *FastCount) SendItem(item *dparval.Value) bool
- func (this *FastCount) SetQuery(q network.Query)
- func (this *FastCount) SetSource(source Operator)
- type Fetch
- type Filter
- type Grouper
- type Limit
- type Offset
- type Operator
- type Order
- func (this *Order) GetChannels() (dparval.ValueChannel, PipelineSupportChannel)
- func (this *Order) Len() int
- func (this *Order) Less(i, j int) bool
- func (this *Order) Run(stopChannel misc.StopChannel)
- func (this *Order) SetQuery(q network.Query)
- func (this *Order) SetSource(source Operator)
- func (this *Order) Swap(i, j int)
- type PipelineSupportChannel
- type Project
- type Scan
- func (this *Scan) GetChannels() (dparval.ValueChannel, PipelineSupportChannel)
- func (this *Scan) RecoverPanic()
- func (this *Scan) Run(stopChannel misc.StopChannel)
- func (this *Scan) SendError(err query.Error) bool
- func (this *Scan) SendItem(item *dparval.Value) bool
- func (this *Scan) SetQuery(q network.Query)
- func (this *Scan) SetSource(source Operator)
Constants ¶
View Source
const CHANNEL = "PIPELINE"
View Source
const DEBUG_DUP_CHANNEL = "OP_DUP"
View Source
const DEBUG_PROJECT_CHANNEL = "OP_PROJECT"
View Source
const FETCH_BATCH_SIZE = 1000
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BaseOperator ¶
type BaseOperator struct { Source Operator // contains filtered or unexported fields }
func NewBaseOperator ¶
func NewBaseOperator() *BaseOperator
func (*BaseOperator) Evaluate ¶ added in v0.6.0
func (this *BaseOperator) Evaluate(e ast.Expression, item *dparval.Value) (*dparval.Value, error)
func (*BaseOperator) GetChannels ¶
func (this *BaseOperator) GetChannels() (dparval.ValueChannel, PipelineSupportChannel)
func (*BaseOperator) RecoverPanic ¶
func (this *BaseOperator) RecoverPanic()
func (*BaseOperator) RunOperator ¶
func (this *BaseOperator) RunOperator(oper Operator, stopChannel misc.StopChannel)
func (*BaseOperator) SendOther ¶
func (this *BaseOperator) SendOther(obj interface{}) bool
func (*BaseOperator) SetQuery ¶ added in v0.6.0
func (this *BaseOperator) SetQuery(q network.Query)
func (*BaseOperator) SetSource ¶
func (this *BaseOperator) SetSource(source Operator)
type CreateIndex ¶
type CreateIndex struct {
// contains filtered or unexported fields
}
func NewCreateIndex ¶
func NewCreateIndex(bucket catalog.Bucket, name string, index_type string, primary bool, on ast.ExpressionList) *CreateIndex
func (*CreateIndex) GetChannels ¶
func (this *CreateIndex) GetChannels() (dparval.ValueChannel, PipelineSupportChannel)
func (*CreateIndex) RecoverPanic ¶
func (this *CreateIndex) RecoverPanic()
func (*CreateIndex) Run ¶
func (this *CreateIndex) Run(stopChannel misc.StopChannel)
func (*CreateIndex) SetQuery ¶ added in v0.6.0
func (this *CreateIndex) SetQuery(q network.Query)
func (*CreateIndex) SetSource ¶
func (this *CreateIndex) SetSource(source Operator)
type DocumentJoin ¶
type DocumentJoin struct { Base *BaseOperator Over ast.Expression As string }
func NewDocumentJoin ¶
func NewDocumentJoin(over ast.Expression, as string) *DocumentJoin
func (*DocumentJoin) GetChannels ¶
func (this *DocumentJoin) GetChannels() (dparval.ValueChannel, PipelineSupportChannel)
func (*DocumentJoin) Run ¶
func (this *DocumentJoin) Run(stopChannel misc.StopChannel)
func (*DocumentJoin) SetQuery ¶ added in v0.6.0
func (this *DocumentJoin) SetQuery(q network.Query)
func (*DocumentJoin) SetSource ¶
func (this *DocumentJoin) SetSource(source Operator)
type DropIndex ¶
type DropIndex struct {
// contains filtered or unexported fields
}
func NewDropIndex ¶
func (*DropIndex) GetChannels ¶
func (this *DropIndex) GetChannels() (dparval.ValueChannel, PipelineSupportChannel)
func (*DropIndex) RecoverPanic ¶
func (this *DropIndex) RecoverPanic()
func (*DropIndex) Run ¶
func (this *DropIndex) Run(stopChannel misc.StopChannel)
type EliminateDuplicates ¶
type EliminateDuplicates struct { Base *BaseOperator // contains filtered or unexported fields }
func NewEliminateDuplicates ¶
func NewEliminateDuplicates() *EliminateDuplicates
func (*EliminateDuplicates) GetChannels ¶
func (this *EliminateDuplicates) GetChannels() (dparval.ValueChannel, PipelineSupportChannel)
func (*EliminateDuplicates) Run ¶
func (this *EliminateDuplicates) Run(stopChannel misc.StopChannel)
func (*EliminateDuplicates) SetQuery ¶ added in v0.6.0
func (this *EliminateDuplicates) SetQuery(q network.Query)
func (*EliminateDuplicates) SetSource ¶
func (this *EliminateDuplicates) SetSource(source Operator)
type ExecutablePipeline ¶
type ExecutablePipeline struct {
Root Operator
}
type Explain ¶
type Explain struct { Plan plan.PlanElement // contains filtered or unexported fields }
func NewExplain ¶
func NewExplain(plan plan.PlanElement) *Explain
func (*Explain) GetChannels ¶
func (this *Explain) GetChannels() (dparval.ValueChannel, PipelineSupportChannel)
func (*Explain) RecoverPanic ¶
func (this *Explain) RecoverPanic()
func (*Explain) Run ¶
func (this *Explain) Run(stopChannel misc.StopChannel)
type FastCount ¶ added in v0.6.0
type FastCount struct {
// contains filtered or unexported fields
}
func NewFastCount ¶ added in v0.6.0
func NewFastCount(bucket catalog.Bucket, index catalog.CountIndex, expr ast.Expression, ranges plan.ScanRanges) *FastCount
func (*FastCount) GetChannels ¶ added in v0.6.0
func (this *FastCount) GetChannels() (dparval.ValueChannel, PipelineSupportChannel)
func (*FastCount) RecoverPanic ¶ added in v0.6.0
func (this *FastCount) RecoverPanic()
func (*FastCount) Run ¶ added in v0.6.0
func (this *FastCount) Run(stopChannel misc.StopChannel)
type Fetch ¶
type Fetch struct { Base *BaseOperator // contains filtered or unexported fields }
func (*Fetch) GetChannels ¶
func (this *Fetch) GetChannels() (dparval.ValueChannel, PipelineSupportChannel)
func (*Fetch) Run ¶
func (this *Fetch) Run(stopChannel misc.StopChannel)
type Filter ¶
type Filter struct { Base *BaseOperator Expr ast.Expression }
func NewFilter ¶
func NewFilter(expr ast.Expression) *Filter
func (*Filter) GetChannels ¶
func (this *Filter) GetChannels() (dparval.ValueChannel, PipelineSupportChannel)
func (*Filter) Run ¶
func (this *Filter) Run(stopChannel misc.StopChannel)
type Grouper ¶
type Grouper struct { Base *BaseOperator GroupBy ast.ExpressionList Aggregates ast.ExpressionList // contains filtered or unexported fields }
func NewGrouper ¶
func NewGrouper(groupBy ast.ExpressionList, aggs ast.ExpressionList) *Grouper
func (*Grouper) GetChannels ¶
func (this *Grouper) GetChannels() (dparval.ValueChannel, PipelineSupportChannel)
func (*Grouper) Run ¶
func (this *Grouper) Run(stopChannel misc.StopChannel)
type Limit ¶
type Limit struct { Base *BaseOperator Limit int // contains filtered or unexported fields }
func (*Limit) GetChannels ¶
func (this *Limit) GetChannels() (dparval.ValueChannel, PipelineSupportChannel)
func (*Limit) Run ¶
func (this *Limit) Run(stopChannel misc.StopChannel)
type Offset ¶
type Offset struct { Base *BaseOperator Offset int // contains filtered or unexported fields }
func (*Offset) GetChannels ¶
func (this *Offset) GetChannels() (dparval.ValueChannel, PipelineSupportChannel)
func (*Offset) Run ¶
func (this *Offset) Run(stopChannel misc.StopChannel)
type Operator ¶
type Operator interface { SetSource(Operator) GetChannels() (dparval.ValueChannel, PipelineSupportChannel) Run(misc.StopChannel) SetQuery(q network.Query) // contains filtered or unexported methods }
type Order ¶
type Order struct { Base *BaseOperator OrderBy []*ast.SortExpression // contains filtered or unexported fields }
func (*Order) GetChannels ¶
func (this *Order) GetChannels() (dparval.ValueChannel, PipelineSupportChannel)
func (*Order) Run ¶
func (this *Order) Run(stopChannel misc.StopChannel)
type PipelineSupportChannel ¶
type PipelineSupportChannel chan interface{}
type Project ¶
type Project struct { Base *BaseOperator Result ast.ResultExpressionList // contains filtered or unexported fields }
func NewProject ¶
func NewProject(result ast.ResultExpressionList, projectEmpty bool) *Project
func (*Project) GetChannels ¶
func (this *Project) GetChannels() (dparval.ValueChannel, PipelineSupportChannel)
func (*Project) Run ¶
func (this *Project) Run(stopChannel misc.StopChannel)
type Scan ¶
type Scan struct {
// contains filtered or unexported fields
}
func (*Scan) GetChannels ¶
func (this *Scan) GetChannels() (dparval.ValueChannel, PipelineSupportChannel)
func (*Scan) RecoverPanic ¶
func (this *Scan) RecoverPanic()
func (*Scan) Run ¶
func (this *Scan) Run(stopChannel misc.StopChannel)
Click to show internal directories.
Click to hide internal directories.