Class LongDocValues
java.lang.Object
org.apache.lucene.queries.function.FunctionValues
org.apache.lucene.queries.function.docvalues.LongDocValues
Abstract
FunctionValues
implementation which supports retrieving long values.
Implementations can control how the long values are loaded through longVal(int)
}-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.lucene.queries.function.FunctionValues
FunctionValues.ValueFiller
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
boolVal
(int doc) byte
byteVal
(int doc) double
doubleVal
(int doc) protected long
externalToLong
(String extVal) float
floatVal
(int doc) getRangeScorer
(Weight weight, LeafReaderContext readerContext, String lowerVal, String upperVal, boolean includeLower, boolean includeUpper) Yields aScorer
that matches documents with values between the specified range, and that which produces scores equal toFunctionValues.floatVal(int)
.int
intVal
(int doc) abstract long
longVal
(int doc) objectVal
(int doc) Native Java Object representation of the valueshort
shortVal
(int doc) strVal
(int doc) toString
(int doc)
-
Field Details
-
vs
-
-
Constructor Details
-
LongDocValues
-
-
Method Details
-
byteVal
- Overrides:
byteVal
in classFunctionValues
- Throws:
IOException
-
shortVal
- Overrides:
shortVal
in classFunctionValues
- Throws:
IOException
-
floatVal
- Overrides:
floatVal
in classFunctionValues
- Throws:
IOException
-
intVal
- Overrides:
intVal
in classFunctionValues
- Throws:
IOException
-
longVal
- Overrides:
longVal
in classFunctionValues
- Throws:
IOException
-
doubleVal
- Overrides:
doubleVal
in classFunctionValues
- Throws:
IOException
-
boolVal
- Overrides:
boolVal
in classFunctionValues
- Throws:
IOException
-
strVal
- Overrides:
strVal
in classFunctionValues
- Throws:
IOException
-
objectVal
Description copied from class:FunctionValues
Native Java Object representation of the value- Overrides:
objectVal
in classFunctionValues
- Throws:
IOException
-
toString
- Specified by:
toString
in classFunctionValues
- Throws:
IOException
-
externalToLong
-
getRangeScorer
public ValueSourceScorer getRangeScorer(Weight weight, LeafReaderContext readerContext, String lowerVal, String upperVal, boolean includeLower, boolean includeUpper) Description copied from class:FunctionValues
Yields aScorer
that matches documents with values between the specified range, and that which produces scores equal toFunctionValues.floatVal(int)
.- Overrides:
getRangeScorer
in classFunctionValues
-
getValueFiller
- Overrides:
getValueFiller
in classFunctionValues
-