presto-main/src/main/java/io/prestosql/execution/buffer/ArbitraryOutputBuffer.java/ArbitraryOutputBuffer/isFinished
class ArbitraryOutputBuffer:    @Override
    public boolean isFinished()
    {
        return state.get() == FINISHED;
    }