Module org.apache.lucene.queries
Class DoubleDocValues
- java.lang.Object
-
- org.apache.lucene.queries.function.FunctionValues
-
- org.apache.lucene.queries.function.docvalues.DoubleDocValues
-
- Direct Known Subclasses:
DocFreqValueSource.ConstDoubleDocValues
public abstract class DoubleDocValues extends FunctionValues
AbstractFunctionValues
implementation which supports retrieving double values. Implementations can control how the double values are loaded throughdoubleVal(int)
}
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.apache.lucene.queries.function.FunctionValues
FunctionValues.ValueFiller
-
-
Field Summary
Fields Modifier and Type Field Description protected ValueSource
vs
-
Constructor Summary
Constructors Constructor Description DoubleDocValues(ValueSource vs)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description boolean
boolVal(int doc)
byte
byteVal(int doc)
abstract double
doubleVal(int doc)
float
floatVal(int doc)
ValueSourceScorer
getRangeScorer(Weight weight, LeafReaderContext readerContext, java.lang.String lowerVal, java.lang.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)
.FunctionValues.ValueFiller
getValueFiller()
int
intVal(int doc)
long
longVal(int doc)
java.lang.Object
objectVal(int doc)
Native Java Object representation of the valueshort
shortVal(int doc)
java.lang.String
strVal(int doc)
java.lang.String
toString(int doc)
-
-
-
Field Detail
-
vs
protected final ValueSource vs
-
-
Constructor Detail
-
DoubleDocValues
public DoubleDocValues(ValueSource vs)
-
-
Method Detail
-
byteVal
public byte byteVal(int doc) throws java.io.IOException
- Overrides:
byteVal
in classFunctionValues
- Throws:
java.io.IOException
-
shortVal
public short shortVal(int doc) throws java.io.IOException
- Overrides:
shortVal
in classFunctionValues
- Throws:
java.io.IOException
-
floatVal
public float floatVal(int doc) throws java.io.IOException
- Overrides:
floatVal
in classFunctionValues
- Throws:
java.io.IOException
-
intVal
public int intVal(int doc) throws java.io.IOException
- Overrides:
intVal
in classFunctionValues
- Throws:
java.io.IOException
-
longVal
public long longVal(int doc) throws java.io.IOException
- Overrides:
longVal
in classFunctionValues
- Throws:
java.io.IOException
-
boolVal
public boolean boolVal(int doc) throws java.io.IOException
- Overrides:
boolVal
in classFunctionValues
- Throws:
java.io.IOException
-
doubleVal
public abstract double doubleVal(int doc) throws java.io.IOException
- Overrides:
doubleVal
in classFunctionValues
- Throws:
java.io.IOException
-
strVal
public java.lang.String strVal(int doc) throws java.io.IOException
- Overrides:
strVal
in classFunctionValues
- Throws:
java.io.IOException
-
objectVal
public java.lang.Object objectVal(int doc) throws java.io.IOException
Description copied from class:FunctionValues
Native Java Object representation of the value- Overrides:
objectVal
in classFunctionValues
- Throws:
java.io.IOException
-
toString
public java.lang.String toString(int doc) throws java.io.IOException
- Specified by:
toString
in classFunctionValues
- Throws:
java.io.IOException
-
getRangeScorer
public ValueSourceScorer getRangeScorer(Weight weight, LeafReaderContext readerContext, java.lang.String lowerVal, java.lang.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
public FunctionValues.ValueFiller getValueFiller()
- Overrides:
getValueFiller
in classFunctionValues
-
-