private static class IndexReaderFunctions.NoCacheConstantLongValuesSource extends LongValuesSource
Modifier and Type | Field and Description |
---|---|
(package private) LongValuesSource |
parent |
(package private) long |
value |
Modifier | Constructor and Description |
---|---|
private |
NoCacheConstantLongValuesSource(long value,
LongValuesSource parent) |
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 reader)
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, toDoubleValuesSource
final long value
final LongValuesSource parent
private NoCacheConstantLongValuesSource(long value, LongValuesSource parent)
public LongValues getValues(LeafReaderContext ctx, DoubleValues scores) throws java.io.IOException
LongValuesSource
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.getValues
in class LongValuesSource
java.io.IOException
public boolean needsScores()
LongValuesSource
needsScores
in class LongValuesSource
public LongValuesSource rewrite(IndexSearcher reader) throws java.io.IOException
LongValuesSource
this
rewrite
in class LongValuesSource
java.io.IOException
public boolean equals(java.lang.Object o)
equals
in class LongValuesSource
public int hashCode()
hashCode
in class LongValuesSource
public java.lang.String toString()
toString
in class LongValuesSource
public boolean isCacheable(LeafReaderContext ctx)
true
if the object can be cached against a given leaf