Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BuildParams ¶
type BuildParams struct {
SeqQL *parser.SeqQLQuery
// Input is the record schema the pipeline starts from
Input *query.Schema
// DocField is the title of document field in Input.
// We still keep some hardcoded params. Will ger rid of it later.
DocField string
From, To seq.MID
OffsetID string
WithTotal bool
}
type ExtractOp ¶
type FilterOp ¶
type FilterOp struct {
Cond parser.FilterCondition
WithTotal bool
}
type Op ¶
type Op interface {
// Apply wraps the input producer and returns it with the op's output schema.
// Ops that do not change the record shape return the input schema unchanged.
Apply(input query.RecordProducer, in *query.Schema) (query.RecordProducer, *query.Schema)
}
Op is one operation wrapping the record stream. Each op has its own parameters, resolves its input columns from the schema of the pipeline built so far, and knows its output schema.
type Plan ¶
func Build ¶
func Build(params BuildParams) (*Plan, error)
Build converts a parsed SeqQL query into a validated logical plan.