executor: remove Next for AnalyzeExec (#6012)

This commit is contained in:
shizy
2018-03-12 13:14:39 +08:00
committed by HuaiyuXu
parent f34f817b1f
commit ef9745bb1a

View File

@ -52,17 +52,8 @@ const (
defaultCMSketchWidth = 2048
)
// Next implements the Executor Next interface.
func (e *AnalyzeExec) Next(ctx context.Context) (Row, error) {
return nil, errors.Trace(e.run(ctx))
}
// NextChunk implements the Executor NextChunk interface.
func (e *AnalyzeExec) NextChunk(ctx context.Context, chk *chunk.Chunk) error {
return errors.Trace(e.run(ctx))
}
func (e *AnalyzeExec) run(ctx context.Context) error {
concurrency, err := getBuildStatsConcurrency(e.ctx)
if err != nil {
return errors.Trace(err)