public abstract class IntDocValues extends FunctionValues
FunctionValues
implementation which supports retrieving int values.
Implementations can control how the int values are loaded through intVal(int)
FunctionValues.ValueFiller
Modifier and Type | Field and Description |
---|---|
protected ValueSource |
vs |
Constructor and Description |
---|
IntDocValues(ValueSource vs) |
Modifier and Type | Method and Description |
---|---|
byte |
byteVal(int doc) |
double |
doubleVal(int doc) |
float |
floatVal(int doc) |
ValueSourceScorer |
getRangeScorer(LeafReaderContext readerContext,
java.lang.String lowerVal,
java.lang.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() |
abstract int |
intVal(int doc) |
long |
longVal(int doc) |
java.lang.Object |
objectVal(int doc)
Native Java Object representation of the value
|
short |
shortVal(int doc) |
java.lang.String |
strVal(int doc) |
java.lang.String |
toString(int doc) |
protected final ValueSource vs
public IntDocValues(ValueSource vs)
public byte byteVal(int doc) throws java.io.IOException
byteVal
in class FunctionValues
java.io.IOException
public short shortVal(int doc) throws java.io.IOException
shortVal
in class FunctionValues
java.io.IOException
public float floatVal(int doc) throws java.io.IOException
floatVal
in class FunctionValues
java.io.IOException
public abstract int intVal(int doc) throws java.io.IOException
intVal
in class FunctionValues
java.io.IOException
public long longVal(int doc) throws java.io.IOException
longVal
in class FunctionValues
java.io.IOException
public double doubleVal(int doc) throws java.io.IOException
doubleVal
in class FunctionValues
java.io.IOException
public java.lang.String strVal(int doc) throws java.io.IOException
strVal
in class FunctionValues
java.io.IOException
public java.lang.Object objectVal(int doc) throws java.io.IOException
FunctionValues
objectVal
in class FunctionValues
java.io.IOException
public java.lang.String toString(int doc) throws java.io.IOException
toString
in class FunctionValues
java.io.IOException
public ValueSourceScorer getRangeScorer(LeafReaderContext readerContext, java.lang.String lowerVal, java.lang.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–2019 The Apache Software Foundation. All rights reserved.