java.lang.Object
org.apache.lucene.search.SortedNumericSelector
Selects a value from the document's list to use as the representative value
This provides a NumericDocValues view over the SortedNumeric, for use with sorting, expressions, function queries, etc.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescription(package private) static class
Wraps a SortedNumericDocValues and returns the last value (max)(package private) static class
Wraps a SortedNumericDocValues and returns the first value (min)static enum
Type of selection to perform. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic NumericDocValues
wrap
(SortedNumericDocValues sortedNumeric, SortedNumericSelector.Type selector, SortField.Type numericType) Wraps a multi-valued SortedNumericDocValues as a single-valued view, using the specified selector and numericType.
-
Constructor Details
-
SortedNumericSelector
public SortedNumericSelector()
-
-
Method Details
-
wrap
public static NumericDocValues wrap(SortedNumericDocValues sortedNumeric, SortedNumericSelector.Type selector, SortField.Type numericType) Wraps a multi-valued SortedNumericDocValues as a single-valued view, using the specified selector and numericType.
-