Class LongDocValues
- java.lang.Object
-
- org.apache.lucene.queries.function.FunctionValues
-
- org.apache.lucene.queries.function.docvalues.LongDocValues
-
public abstract class LongDocValues extends FunctionValues
AbstractFunctionValues
implementation which supports retrieving long values. Implementations can control how the long values are loaded throughlongVal(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 LongDocValues(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)
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 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)
abstract long
longVal(int doc)
Object
objectVal(int doc)
Native Java Object representation of the valueshort
shortVal(int doc)
String
strVal(int doc)
String
toString(int doc)
-
-
-
Field Detail
-
vs
protected final ValueSource vs
-
-
Constructor Detail
-
LongDocValues
public LongDocValues(ValueSource vs)
-
-
Method Detail
-
byteVal
public byte byteVal(int doc) throws IOException
- Overrides:
byteVal
in classFunctionValues
- Throws:
IOException
-
shortVal
public short shortVal(int doc) throws IOException
- Overrides:
shortVal
in classFunctionValues
- Throws:
IOException
-
floatVal
public float floatVal(int doc) throws IOException
- Overrides:
floatVal
in classFunctionValues
- Throws:
IOException
-
intVal
public int intVal(int doc) throws IOException
- Overrides:
intVal
in classFunctionValues
- Throws:
IOException
-
longVal
public abstract long longVal(int doc) throws IOException
- Overrides:
longVal
in classFunctionValues
- Throws:
IOException
-
doubleVal
public double doubleVal(int doc) throws IOException
- Overrides:
doubleVal
in classFunctionValues
- Throws:
IOException
-
boolVal
public boolean boolVal(int doc) throws IOException
- Overrides:
boolVal
in classFunctionValues
- Throws:
IOException
-
strVal
public String strVal(int doc) throws IOException
- Overrides:
strVal
in classFunctionValues
- Throws:
IOException
-
objectVal
public Object objectVal(int doc) throws IOException
Description copied from class:FunctionValues
Native Java Object representation of the value- Overrides:
objectVal
in classFunctionValues
- Throws:
IOException
-
toString
public String toString(int doc) throws IOException
- Specified by:
toString
in classFunctionValues
- Throws:
IOException
-
externalToLong
protected long externalToLong(String extVal)
-
getRangeScorer
public ValueSourceScorer getRangeScorer(Weight weight, LeafReaderContext readerContext, String lowerVal, 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
-
-