Package org.apache.lucene.search
Class DoubleValuesSource.LongDoubleValuesSource
- java.lang.Object
-
- org.apache.lucene.search.LongValuesSource
-
- org.apache.lucene.search.DoubleValuesSource.LongDoubleValuesSource
-
- All Implemented Interfaces:
SegmentCacheable
- Enclosing class:
- DoubleValuesSource
private static class DoubleValuesSource.LongDoubleValuesSource extends LongValuesSource
-
-
Field Summary
Fields Modifier and Type Field Description private DoubleValuesSourceinner
-
Constructor Summary
Constructors Modifier Constructor Description privateLongDoubleValuesSource(DoubleValuesSource inner)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object o)LongValuesgetValues(LeafReaderContext ctx, DoubleValues scores)Returns aLongValuesinstance for the passed-in LeafReaderContext and scores If scores are not needed to calculate the values (iereturns false, callers may safely passnullfor thescoresparameter.inthashCode()booleanisCacheable(LeafReaderContext ctx)booleanneedsScores()Return true if document scores are needed to calculate valuesLongValuesSourcerewrite(IndexSearcher searcher)Return a LongValuesSource specialised for the given IndexSearcher Implementations should assume that this will only be called once.java.lang.StringtoString()-
Methods inherited from class org.apache.lucene.search.LongValuesSource
constant, fromIntField, fromLongField, getSortField, toDoubleValuesSource
-
-
-
-
Field Detail
-
inner
private final DoubleValuesSource inner
-
-
Constructor Detail
-
LongDoubleValuesSource
private LongDoubleValuesSource(DoubleValuesSource inner)
-
-
Method Detail
-
getValues
public LongValues getValues(LeafReaderContext ctx, DoubleValues scores) throws java.io.IOException
Description copied from class:LongValuesSourceReturns aLongValuesinstance for the passed-in LeafReaderContext and scores If scores are not needed to calculate the values (iereturns false, callers may safely passnullfor thescoresparameter.- Specified by:
getValuesin classLongValuesSource- Throws:
java.io.IOException
-
isCacheable
public boolean isCacheable(LeafReaderContext ctx)
- Returns:
trueif the object can be cached against a given leaf
-
needsScores
public boolean needsScores()
Description copied from class:LongValuesSourceReturn true if document scores are needed to calculate values- Specified by:
needsScoresin classLongValuesSource
-
equals
public boolean equals(java.lang.Object o)
- Specified by:
equalsin classLongValuesSource
-
hashCode
public int hashCode()
- Specified by:
hashCodein classLongValuesSource
-
toString
public java.lang.String toString()
- Specified by:
toStringin classLongValuesSource
-
rewrite
public LongValuesSource rewrite(IndexSearcher searcher) throws java.io.IOException
Description copied from class:LongValuesSourceReturn a LongValuesSource specialised for the given IndexSearcher Implementations should assume that this will only be called once. IndexSearcher-independent implementations can just returnthis- Specified by:
rewritein classLongValuesSource- Throws:
java.io.IOException
-
-