Class DoubleDocValues
- java.lang.Object
-
- org.apache.lucene.queries.function.FunctionValues
-
- org.apache.lucene.queries.function.docvalues.DoubleDocValues
-
public abstract class DoubleDocValues extends FunctionValues
AbstractFunctionValuesimplementation 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 ValueSourcevs
-
Constructor Summary
Constructors Constructor Description DoubleDocValues(ValueSource vs)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description booleanboolVal(int doc)bytebyteVal(int doc)abstract doubledoubleVal(int doc)floatfloatVal(int doc)ValueSourceScorergetRangeScorer(Weight weight, LeafReaderContext readerContext, String lowerVal, String upperVal, boolean includeLower, boolean includeUpper)Yields aScorerthat matches documents with values between the specified range, and that which produces scores equal toFunctionValues.floatVal(int).FunctionValues.ValueFillergetValueFiller()intintVal(int doc)longlongVal(int doc)ObjectobjectVal(int doc)Native Java Object representation of the valueshortshortVal(int doc)StringstrVal(int doc)StringtoString(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 IOException- Overrides:
byteValin classFunctionValues- Throws:
IOException
-
shortVal
public short shortVal(int doc) throws IOException- Overrides:
shortValin classFunctionValues- Throws:
IOException
-
floatVal
public float floatVal(int doc) throws IOException- Overrides:
floatValin classFunctionValues- Throws:
IOException
-
intVal
public int intVal(int doc) throws IOException- Overrides:
intValin classFunctionValues- Throws:
IOException
-
longVal
public long longVal(int doc) throws IOException- Overrides:
longValin classFunctionValues- Throws:
IOException
-
boolVal
public boolean boolVal(int doc) throws IOException- Overrides:
boolValin classFunctionValues- Throws:
IOException
-
doubleVal
public abstract double doubleVal(int doc) throws IOException- Overrides:
doubleValin classFunctionValues- Throws:
IOException
-
strVal
public String strVal(int doc) throws IOException
- Overrides:
strValin classFunctionValues- Throws:
IOException
-
objectVal
public Object objectVal(int doc) throws IOException
Description copied from class:FunctionValuesNative Java Object representation of the value- Overrides:
objectValin classFunctionValues- Throws:
IOException
-
toString
public String toString(int doc) throws IOException
- Specified by:
toStringin classFunctionValues- Throws:
IOException
-
getRangeScorer
public ValueSourceScorer getRangeScorer(Weight weight, LeafReaderContext readerContext, String lowerVal, String upperVal, boolean includeLower, boolean includeUpper)
Description copied from class:FunctionValuesYields aScorerthat matches documents with values between the specified range, and that which produces scores equal toFunctionValues.floatVal(int).- Overrides:
getRangeScorerin classFunctionValues
-
getValueFiller
public FunctionValues.ValueFiller getValueFiller()
- Overrides:
getValueFillerin classFunctionValues
-
-