presto-main/src/main/java/io/prestosql/execution/buffer/ArbitraryOutputBuffer.java/MasterBuffer/isEmpty
class MasterBuffer:        public synchronized boolean isEmpty()
        {
            return masterBuffer.isEmpty();
        }