iprithv opened a new pull request, #15993: URL: https://github.com/apache/lucene/pull/15993
## Description - Add `DocValuesSkipper#maxValueCount()` so consumers can determine whether a doc values field is definitely single-valued without unwrapping iterators. - Persist exact global `maxValueCount` metadata in Lucene90 doc values skipper metadata for new segments. - Add validation and test coverage for empty, single-valued, and multi-valued skipper fields. ## Compatibility Older Lucene90 segments do not have this metadata, so `maxValueCount()` returns a safe upper bound: `0` for empty fields and `Integer.MAX_VALUE` otherwise. Exact values become available once segments are rewritten or merged with the new format. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
