public abstract class DoubleDocValues extends FunctionValues
FunctionValues implementation which supports retrieving double values.
Implementations can control how the double values are loaded through doubleVal(int)}FunctionValues.ValueFiller| Modifier and Type | Field and Description |
|---|---|
protected ValueSource |
vs |
| Constructor and Description |
|---|
DoubleDocValues(ValueSource vs) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
boolVal(int doc) |
byte |
byteVal(int doc) |
abstract double |
doubleVal(int doc) |
float |
floatVal(int doc) |
ValueSourceScorer |
getRangeScorer(LeafReaderContext readerContext,
String lowerVal,
String upperVal,
boolean includeLower,
boolean includeUpper)
Yields a
Scorer that matches documents with values between the specified range,
and that which produces scores equal to FunctionValues.floatVal(int). |
FunctionValues.ValueFiller |
getValueFiller() |
int |
intVal(int doc) |
long |
longVal(int doc) |
Object |
objectVal(int doc)
Native Java Object representation of the value
|
short |
shortVal(int doc) |
String |
strVal(int doc) |
String |
toString(int doc) |
protected final ValueSource vs
public DoubleDocValues(ValueSource vs)
public byte byteVal(int doc)
throws IOException
byteVal in class FunctionValuesIOExceptionpublic short shortVal(int doc)
throws IOException
shortVal in class FunctionValuesIOExceptionpublic float floatVal(int doc)
throws IOException
floatVal in class FunctionValuesIOExceptionpublic int intVal(int doc)
throws IOException
intVal in class FunctionValuesIOExceptionpublic long longVal(int doc)
throws IOException
longVal in class FunctionValuesIOExceptionpublic boolean boolVal(int doc)
throws IOException
boolVal in class FunctionValuesIOExceptionpublic abstract double doubleVal(int doc)
throws IOException
doubleVal in class FunctionValuesIOExceptionpublic String strVal(int doc) throws IOException
strVal in class FunctionValuesIOExceptionpublic Object objectVal(int doc) throws IOException
FunctionValuesobjectVal in class FunctionValuesIOExceptionpublic String toString(int doc) throws IOException
toString in class FunctionValuesIOExceptionpublic ValueSourceScorer getRangeScorer(LeafReaderContext readerContext, String lowerVal, String upperVal, boolean includeLower, boolean includeUpper)
FunctionValuesScorer that matches documents with values between the specified range,
and that which produces scores equal to FunctionValues.floatVal(int).getRangeScorer in class FunctionValuespublic FunctionValues.ValueFiller getValueFiller()
getValueFiller in class FunctionValuesCopyright © 2000-2017 Apache Software Foundation. All Rights Reserved.