public abstract class LongDocValues extends FunctionValues
FunctionValues implementation which supports retrieving long values.
Implementations can control how the long values are loaded through longVal(int)}FunctionValues.ValueFiller| Modifier and Type | Field and Description |
|---|---|
protected ValueSource |
vs |
| Constructor and Description |
|---|
LongDocValues(ValueSource vs) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
boolVal(int doc) |
byte |
byteVal(int doc) |
double |
doubleVal(int doc) |
protected long |
externalToLong(String extVal) |
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) |
abstract 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 LongDocValues(ValueSource vs)
public byte byteVal(int doc)
byteVal in class FunctionValuespublic short shortVal(int doc)
shortVal in class FunctionValuespublic float floatVal(int doc)
floatVal in class FunctionValuespublic int intVal(int doc)
intVal in class FunctionValuespublic abstract long longVal(int doc)
longVal in class FunctionValuespublic double doubleVal(int doc)
doubleVal in class FunctionValuespublic boolean boolVal(int doc)
boolVal in class FunctionValuespublic String strVal(int doc)
strVal in class FunctionValuespublic Object objectVal(int doc)
FunctionValuesobjectVal in class FunctionValuespublic String toString(int doc)
toString in class FunctionValuesprotected long externalToLong(String extVal)
public 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-2016 Apache Software Foundation. All Rights Reserved.