private static class ValueSource.WrappedLongValuesSource extends LongValuesSource
| Modifier and Type | Field and Description |
|---|---|
private ValueSource |
in |
| Modifier | Constructor and Description |
|---|---|
private |
WrappedLongValuesSource(ValueSource in) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object o) |
LongValues |
getValues(LeafReaderContext ctx,
DoubleValues scores)
Returns a
LongValues 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 |
isCacheable(LeafReaderContext ctx) |
boolean |
needsScores()
Return true if document scores are needed to calculate values
|
LongValuesSource |
rewrite(IndexSearcher searcher)
Return a LongValuesSource specialised for the given IndexSearcher
Implementations should assume that this will only be called once.
|
java.lang.String |
toString() |
constant, fromIntField, fromLongField, getSortField, toDoubleValuesSourceprivate final ValueSource in
private WrappedLongValuesSource(ValueSource in)
public LongValues getValues(LeafReaderContext ctx, DoubleValues scores) throws java.io.IOException
LongValuesSourceLongValues 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 LongValuesSourcejava.io.IOExceptionpublic boolean isCacheable(LeafReaderContext ctx)
true if the object can be cached against a given leafpublic boolean needsScores()
LongValuesSourceneedsScores in class LongValuesSourcepublic boolean equals(java.lang.Object o)
equals in class LongValuesSourcepublic int hashCode()
hashCode in class LongValuesSourcepublic java.lang.String toString()
toString in class LongValuesSourcepublic LongValuesSource rewrite(IndexSearcher searcher) throws java.io.IOException
LongValuesSourcethisrewrite in class LongValuesSourcejava.io.IOException