public class MultiValuedIntFieldSource extends IntFieldSource
LeafReader.getSortedNumericDocValues(java.lang.String) and using a
SortedNumericSelector it gives a single-valued ValueSource view of a field.| Modifier and Type | Field and Description |
|---|---|
protected SortedNumericSelector.Type |
selector |
field| Constructor and Description |
|---|
MultiValuedIntFieldSource(java.lang.String field,
SortedNumericSelector.Type selector) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
description()
description of field, used in explain()
|
boolean |
equals(java.lang.Object o) |
protected NumericDocValues |
getNumericDocValues(java.util.Map context,
LeafReaderContext readerContext) |
SortField |
getSortField(boolean reverse)
EXPERIMENTAL: This method is subject to change.
|
int |
hashCode() |
getValuesgetFieldasDoubleValuesSource, asLongValuesSource, createWeight, fromDoubleValuesSource, newContext, toStringprotected final SortedNumericSelector.Type selector
public MultiValuedIntFieldSource(java.lang.String field,
SortedNumericSelector.Type selector)
public SortField getSortField(boolean reverse)
ValueSource
Get the SortField for this ValueSource. Uses the ValueSource.getValues(java.util.Map, org.apache.lucene.index.LeafReaderContext)
to populate the SortField.
getSortField in class IntFieldSourcereverse - true if this is a reverse sort.SortField for the ValueSourcepublic java.lang.String description()
ValueSourcedescription in class IntFieldSourceprotected NumericDocValues getNumericDocValues(java.util.Map context, LeafReaderContext readerContext) throws java.io.IOException
getNumericDocValues in class IntFieldSourcejava.io.IOExceptionpublic boolean equals(java.lang.Object o)
equals in class IntFieldSourcepublic int hashCode()
hashCode in class IntFieldSourceCopyright © 2000–2025 The Apache Software Foundation. All rights reserved.