public class MultiValuedLongFieldSource extends LongFieldSource
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 |
---|
MultiValuedLongFieldSource(String field,
SortedNumericSelector.Type selector) |
Modifier and Type | Method and Description |
---|---|
String |
description()
description of field, used in explain()
|
boolean |
equals(Object o) |
protected NumericDocValues |
getNumericDocValues(Map context,
LeafReaderContext readerContext) |
SortField |
getSortField(boolean reverse)
EXPERIMENTAL: This method is subject to change.
|
int |
hashCode() |
externalToLong, getValues, longToObject, longToString, newMutableValueLong
getField
asDoubleValuesSource, asLongValuesSource, createWeight, fromDoubleValuesSource, newContext, toString
protected final SortedNumericSelector.Type selector
public MultiValuedLongFieldSource(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 LongFieldSource
reverse
- true if this is a reverse sort.SortField
for the ValueSourcepublic String description()
ValueSource
description
in class LongFieldSource
protected NumericDocValues getNumericDocValues(Map context, LeafReaderContext readerContext) throws IOException
getNumericDocValues
in class LongFieldSource
IOException
public boolean equals(Object o)
equals
in class LongFieldSource
public int hashCode()
hashCode
in class LongFieldSource
Copyright © 2000-2024 Apache Software Foundation. All Rights Reserved.