presto-thrift/src/main/java/io/prestosql/plugin/thrift/ThriftSplitManager.java/ThriftSplitSource/isFinished
class ThriftSplitSource:        @Override
        public boolean isFinished()
        {
            return !hasMoreData.get();
        }