private static class DoubleValuesSource.FieldValuesSource extends DoubleValuesSource
| Modifier and Type | Field and Description |
|---|---|
(package private) java.util.function.LongToDoubleFunction |
decoder |
(package private) java.lang.String |
field |
SCORES| Modifier | Constructor and Description |
|---|---|
private |
FieldValuesSource(java.lang.String field,
java.util.function.LongToDoubleFunction decoder) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object o) |
Explanation |
explain(LeafReaderContext ctx,
int docId,
Explanation scoreExplanation)
An explanation of the value for the named document.
|
DoubleValues |
getValues(LeafReaderContext ctx,
DoubleValues scores)
Returns a
DoubleValues instance for the passed-in LeafReaderContext and scores
If scores are not needed to calculate the values (ie returns false, callers
may safely pass null for the scores parameter. |
int |
hashCode() |
boolean |
needsScores()
Return true if document scores are needed to calculate values
|
java.lang.String |
toString() |
constant, fromDoubleField, fromField, fromFloatField, fromIntField, fromLongField, fromScorer, getSortField, toLongValuesSourcefinal java.lang.String field
final java.util.function.LongToDoubleFunction decoder
private FieldValuesSource(java.lang.String field,
java.util.function.LongToDoubleFunction decoder)
public boolean equals(java.lang.Object o)
equals in class DoubleValuesSourcepublic java.lang.String toString()
toString in class DoubleValuesSourcepublic int hashCode()
hashCode in class DoubleValuesSourcepublic DoubleValues getValues(LeafReaderContext ctx, DoubleValues scores) throws java.io.IOException
DoubleValuesSourceDoubleValues instance for the passed-in LeafReaderContext and scores
If scores are not needed to calculate the values (ie returns false, callers
may safely pass null for the scores parameter.getValues in class DoubleValuesSourcejava.io.IOExceptionpublic boolean needsScores()
DoubleValuesSourceneedsScores in class DoubleValuesSourcepublic Explanation explain(LeafReaderContext ctx, int docId, Explanation scoreExplanation) throws java.io.IOException
DoubleValuesSourceexplain in class DoubleValuesSourcectx - the readers context to create the Explanation for.docId - the document's id relative to the given context's readerjava.io.IOException - if an IOException occurs