public class ReciprocalDoubleValuesSource extends DoubleValuesSource
SCORES
Constructor and Description |
---|
ReciprocalDoubleValuesSource(double distToEdge,
DoubleValuesSource input)
Creates a ReciprocalDoubleValuesSource
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
Explanation |
explain(LeafReaderContext ctx,
int docId,
Explanation scoreExplanation) |
DoubleValues |
getValues(LeafReaderContext ctx,
DoubleValues scores) |
int |
hashCode() |
boolean |
isCacheable(LeafReaderContext ctx) |
boolean |
needsScores() |
DoubleValuesSource |
rewrite(IndexSearcher searcher) |
String |
toString() |
constant, fromDoubleField, fromField, fromFloatField, fromIntField, fromLongField, fromQuery, fromScorer, getSortField, toLongValuesSource
public ReciprocalDoubleValuesSource(double distToEdge, DoubleValuesSource input)
distToEdge
- the value k in v = k / (v + k)input
- the input DoubleValuesSource to transformpublic DoubleValues getValues(LeafReaderContext ctx, DoubleValues scores) throws IOException
getValues
in class DoubleValuesSource
IOException
public boolean needsScores()
needsScores
in class DoubleValuesSource
public boolean isCacheable(LeafReaderContext ctx)
public Explanation explain(LeafReaderContext ctx, int docId, Explanation scoreExplanation) throws IOException
explain
in class DoubleValuesSource
IOException
public DoubleValuesSource rewrite(IndexSearcher searcher) throws IOException
rewrite
in class DoubleValuesSource
IOException
public boolean equals(Object o)
equals
in class DoubleValuesSource
public int hashCode()
hashCode
in class DoubleValuesSource
public String toString()
toString
in class DoubleValuesSource
Copyright © 2000-2019 Apache Software Foundation. All Rights Reserved.