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(Weight weight,
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) throws IOException
byteVal
in class FunctionValues
IOException
public short shortVal(int doc) throws IOException
shortVal
in class FunctionValues
IOException
public float floatVal(int doc) throws IOException
floatVal
in class FunctionValues
IOException
public int intVal(int doc) throws IOException
intVal
in class FunctionValues
IOException
public abstract long longVal(int doc) throws IOException
longVal
in class FunctionValues
IOException
public double doubleVal(int doc) throws IOException
doubleVal
in class FunctionValues
IOException
public boolean boolVal(int doc) throws IOException
boolVal
in class FunctionValues
IOException
public String strVal(int doc) throws IOException
strVal
in class FunctionValues
IOException
public Object objectVal(int doc) throws IOException
FunctionValues
objectVal
in class FunctionValues
IOException
public String toString(int doc) throws IOException
toString
in class FunctionValues
IOException
protected long externalToLong(String extVal)
public ValueSourceScorer getRangeScorer(Weight weight, LeafReaderContext readerContext, String lowerVal, String upperVal, boolean includeLower, boolean includeUpper)
FunctionValues
Scorer
that matches documents with values between the specified range,
and that which produces scores equal to FunctionValues.floatVal(int)
.getRangeScorer
in class FunctionValues
public FunctionValues.ValueFiller getValueFiller()
getValueFiller
in class FunctionValues
Copyright © 2000-2024 Apache Software Foundation. All Rights Reserved.