Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrQueryPlan is returned when the engine cannot build an execution plan // for a query. ErrQueryPlan = errors.New("engine: query plan failed") // ErrCacheInit is returned when the query plan cache cannot be allocated at // startup; the engine has no usable cache and must not be considered started. ErrCacheInit = errors.New("engine: cache initialisation failed") )
Functions ¶
This section is empty.
Types ¶
type Engine ¶
type Engine[K ~uint64, P float32 | float64] struct { Config *config.ConfigSet Cache cache.Cache[K, query.Query[K, P]] Scheduler *scheduler.Scheduler[K, P] Optimisations *optimisation.Pipeline[K, P] Hasher hash.Hasher[K, string] }
func (*Engine[K, P]) Apply ¶
Apply hands a planned stream to the scheduler for execution. It returns the scheduler's error (e.g. ErrShutdown, ErrQueueFull, or a wrapped context cancellation) so a caller knows the stream was never enqueued and must not wait on its completion.
Click to show internal directories.
Click to hide internal directories.