presto-main/src/main/java/io/prestosql/dispatcher/LocalDispatchQuery.java/LocalDispatchQuery/isDone
class LocalDispatchQuery:    @Override
    public boolean isDone()
    {
        return stateMachine.getQueryState().isDone();
    }