Skip to content

Add maxValueCount to DocValuesSkipper metadata #15794

@romseygeek

Description

@romseygeek

Description

Currently, if a consumer of a numeric or ordinal-based docvalues iterator wants to know if the field is multivalued, then they need to access it via DocValues.getSortedXXX and then check to see if the returned iterator can be unwrapped to a singleton. This is fragile, and not necessarily supported by Codecs. We could build more consistent checks by storing a global maxValueCount entry on DocValuesSkipper. A singleton check can then be done by seeing if the global maxValueCount is equal to 1.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions