public class CachingDoubleValueSource extends DoubleValuesSource
SCORES
Constructor and Description |
---|
CachingDoubleValueSource(DoubleValuesSource source) |
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 readerContext,
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, toLongValuesSource
public CachingDoubleValueSource(DoubleValuesSource source)
public java.lang.String toString()
toString
in class DoubleValuesSource
public DoubleValues getValues(LeafReaderContext readerContext, DoubleValues scores) throws java.io.IOException
DoubleValuesSource
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.getValues
in class DoubleValuesSource
java.io.IOException
public boolean needsScores()
DoubleValuesSource
needsScores
in class DoubleValuesSource
public Explanation explain(LeafReaderContext ctx, int docId, Explanation scoreExplanation) throws java.io.IOException
DoubleValuesSource
explain
in class DoubleValuesSource
ctx
- 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
occurspublic boolean equals(java.lang.Object o)
equals
in class DoubleValuesSource
public int hashCode()
hashCode
in class DoubleValuesSource
Copyright © 2000–2018 The Apache Software Foundation. All rights reserved.