SortedSetSelector (Lucene 10.5.1 core API)
Description: declaration: package: org.apache.lucene.search, class: SortedSetSelector

Package org.apache.lucene.search

# Class SortedSetSelector

java.lang.Object
org.apache.lucene.search.SortedSetSelector

public class SortedSetSelector extends Object
Selects a value from the document's set to use as the representative value

- ## Nested Class Summary

  Nested Classes
  Modifier and Type
  Class
  Description
  `static enum`
  `SortedSetSelector.Type`
  Type of selection to perform.

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `SortedSetSelector()`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `static SortedDocValues`
  `wrap(SortedSetDocValues sortedSet, SortedSetSelector.Type selector)`
  Wraps a multi-valued SortedSetDocValues as a single-valued view, using the specified selector

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Constructor Details

  - ### SortedSetSelector

    public SortedSetSelector()

- ## Method Details

  - ### wrap

    public static SortedDocValues wrap(SortedSetDocValues sortedSet, SortedSetSelector.Type selector)
    Wraps a multi-valued SortedSetDocValues as a single-valued view, using the specified selector