presto-main/src/main/java/io/prestosql/metadata/InternalTable.java/InternalTable/atLimit
class InternalTable:        public boolean atLimit(OptionalLong limit)
        {
            return limit.isPresent() && recordCount >= limit.getAsLong();
        }