Documentation ¶
Index ¶
- func CreateScalarSource(ID parser.NodeID, params ScalarParams, options transform.Options) (parser.Source, *transform.Controller)
- func CreateSource(ID parser.NodeID, params SourceParams, storage storage.Storage, ...) (parser.Source, *transform.Controller)
- func CreateTransform(ID parser.NodeID, params transform.Params, options transform.Options) (transform.OpNode, *transform.Controller)
- type Engine
- type EngineOptions
- type ExecutionState
- type Query
- type Request
- type Result
- type ResultChan
- type ResultNode
- type ScalarParams
- type SourceParams
- type State
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateScalarSource ¶ added in v0.4.1
func CreateScalarSource( ID parser.NodeID, params ScalarParams, options transform.Options, ) (parser.Source, *transform.Controller)
CreateScalarSource creates a scalar source node
func CreateSource ¶
func CreateSource( ID parser.NodeID, params SourceParams, storage storage.Storage, options transform.Options, ) (parser.Source, *transform.Controller)
CreateSource creates a source node
Types ¶
type Engine ¶
type Engine struct {
// contains filtered or unexported fields
}
Engine executes a Query.
func (*Engine) Close ¶
Close kills all running queries and prevents new queries from being attached.
func (*Engine) Execute ¶
func (e *Engine) Execute(ctx context.Context, query *storage.FetchQuery, opts *EngineOptions, results chan *storage.QueryResult)
Execute runs the query and closes the results channel once done
func (*Engine) ExecuteExpr ¶
func (e *Engine) ExecuteExpr(ctx context.Context, parser parser.Parser, opts *EngineOptions, params models.RequestParams, results chan Query)
ExecuteExpr runs the query DAG and closes the results channel once done nolint: unparam
type EngineOptions ¶
type EngineOptions struct { }
EngineOptions can be used to pass custom flags to engine
type ExecutionState ¶
type ExecutionState struct {
// contains filtered or unexported fields
}
ExecutionState represents the execution hierarchy
func GenerateExecutionState ¶
func GenerateExecutionState( pplan plan.PhysicalPlan, storage storage.Storage, ) (*ExecutionState, error)
GenerateExecutionState creates an execution state from the physical plan
func (*ExecutionState) Execute ¶
func (s *ExecutionState) Execute(ctx context.Context) error
Execute the sources in parallel and return the first error
func (*ExecutionState) String ¶
func (s *ExecutionState) String() string
String representation of the state
type Request ¶ added in v0.4.8
type Request struct {
// contains filtered or unexported fields
}
Request represents a single request.
type Result ¶
type Result interface { ResultChan() chan ResultChan // contains filtered or unexported methods }
Result provides the execution results
type ResultChan ¶
ResultChan has the result from a block
type ResultNode ¶
type ResultNode struct {
// contains filtered or unexported fields
}
ResultNode is used to provide the results to the caller from the query execution
func (*ResultNode) ResultChan ¶
func (r *ResultNode) ResultChan() chan ResultChan
ResultChan return a channel to stream back resultChan to the client
type ScalarParams ¶ added in v0.4.1
type ScalarParams interface { parser.Params Node( controller *transform.Controller, options transform.Options, ) parser.Source }
ScalarParams are defined by sources