Executor call code geneartor to generate submitter program and execute it.
| 58 | |
| 59 | // Executor call code geneartor to generate submitter program and execute it. |
| 60 | type Executor interface { |
| 61 | Setup(*pipe.Writer, *database.DB, string, string, *pb.Session) |
| 62 | ExecuteQuery(*ir.NormalStmt) error |
| 63 | ExecuteTrain(*ir.TrainStmt) error |
| 64 | ExecutePredict(*ir.PredictStmt) error |
| 65 | ExecuteExplain(*ir.ExplainStmt) error |
| 66 | ExecuteEvaluate(*ir.EvaluateStmt) error |
| 67 | ExecuteShowTrain(*ir.ShowTrainStmt) error |
| 68 | ExecuteOptimize(*ir.OptimizeStmt) error |
| 69 | ExecuteRun(*ir.RunStmt) error |
| 70 | GetTrainStmtFromModel() bool |
| 71 | } |
| 72 | |
| 73 | // New returns a proper Submitter from configurations in environment variables. |
| 74 | func New(executor string) Executor { |
no outgoing calls
no test coverage detected