optimizer

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Sep 17, 2018 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Optimizer

type Optimizer interface {
	BuildPlanTree() (*planner.PlanTree, error)
}

Optimizer interface.

type SimpleOptimizer

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

SimpleOptimizer is a simple optimizer who dispatches the plans

func NewSimpleOptimizer

func NewSimpleOptimizer(log *xlog.Log, database string, query string, node sqlparser.Statement, router *router.Router) *SimpleOptimizer

NewSimpleOptimizer creates the new simple optimizer.

func (*SimpleOptimizer) BuildPlanTree

func (so *SimpleOptimizer) BuildPlanTree() (*planner.PlanTree, error)

BuildPlanTree used to build plan trees for the query.

Jump to

Keyboard shortcuts

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