presto-main/src/main/java/io/prestosql/execution/SqlQueryExecution.java/SqlQueryExecution/isDone
class SqlQueryExecution:    @Override
    public boolean isDone()
    {
        return getState().isDone();
    }