executor

package
v0.4.2 Latest Latest
Warning

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

Go to latest
Published: Aug 28, 2020 License: Apache-2.0 Imports: 33 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// AlisaTaskTypePAI is PAI task in the Alisa task enumeration
	AlisaTaskTypePAI = iota
	// AlisaTaskTypePyODPS is PyODPS task in the Alisa task enumeration
	AlisaTaskTypePyODPS
)

Variables

This section is empty.

Functions

func Run

func Run(it Executor, stmt ir.SQLFlowStmt) error

Run interprets the SQLFlow IR. TODO(yancey1989): this is a temporary way to decouple executor from the ir package, as the discussion of https://github.com/sql-machine-learning/sqlflow/issues/2494, SQLFlow would generate target code instead of interpret an IR.

Types

type Executor

type Executor interface {
	Setup(*pipe.Writer, *database.DB, string, string, *pb.Session)
	ExecuteQuery(*ir.NormalStmt) error
	ExecuteTrain(*ir.TrainStmt) error
	ExecutePredict(*ir.PredictStmt) error
	ExecuteExplain(*ir.ExplainStmt) error
	ExecuteEvaluate(*ir.EvaluateStmt) error
	ExecuteShowTrain(*ir.ShowTrainStmt) error
	ExecuteOptimize(*ir.OptimizeStmt) error
	ExecuteRun(*ir.RunStmt) error
	GetTrainStmtFromModel() bool
}

Executor call code geneartor to generate submitter program and execute it.

func New

func New(executor string) Executor

New returns a proper Submitter from configurations in environment variables.

type Figures

type Figures struct {
	Image string
	Text  string
}

Figures contains analyzed figures as strings

Jump to

Keyboard shortcuts

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