cascades

package
v1.1.0-beta.0...-aa21818 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 15, 2025 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Context

type Context struct {
	// contains filtered or unexported fields
}

Context includes all the context stuff when go through memo optimizing.

func NewContext

func NewContext(pctx corebase.PlanContext) *Context

NewContext returns a new memo context responsible for manage all the stuff in cascades opt.

func (*Context) Destroy

func (c *Context) Destroy()

Destroy the memo context, which will clean the resource allocated during this phase.

func (*Context) GetMemo

func (c *Context) GetMemo() *memo.Memo

GetMemo returns the basic memo structure.

func (*Context) GetScheduler

func (c *Context) GetScheduler() base.Scheduler

GetScheduler return the stack inside this memo context.

func (*Context) PushTask

func (c *Context) PushTask(task base.Task)

PushTask puts a task into the stack structure inside.

type Optimizer

type Optimizer struct {
	// contains filtered or unexported fields
}

Optimizer is a basic cascades search framework portal, driven by Context.

func NewCascades

func NewCascades(lp corebase.LogicalPlan) (*Optimizer, error)

NewCascades return a new cascades obj for logical alternative searching.

func (*Optimizer) Destroy

func (c *Optimizer) Destroy()

Destroy clean and reset basic elements inside.

func (*Optimizer) Execute

func (c *Optimizer) Execute() error

Execute run the yams search flow inside, returns error if it happened.

func (*Optimizer) GetMemo

func (c *Optimizer) GetMemo() *memo.Memo

GetMemo returns the memo structure inside cascades.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL