Class LongDocValues
- java.lang.Object
-
- org.apache.lucene.queries.function.FunctionValues
-
- org.apache.lucene.queries.function.docvalues.LongDocValues
-
public abstract class LongDocValues extends FunctionValues
AbstractFunctionValuesimplementation 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 ValueSourcevs
-
Constructor Summary
Constructors Constructor Description LongDocValues(ValueSource vs)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description booleanboolVal(int doc)bytebyteVal(int doc)doubledoubleVal(int doc)protected longexternalToLong(java.lang.String extVal)floatfloatVal(int doc)ValueSourceScorergetRangeScorer(Weight weight, LeafReaderContext readerContext, java.lang.String lowerVal, java.lang.String upperVal, boolean includeLower, boolean includeUpper)Yields aScorerthat matches documents with values between the specified range, and that which produces scores equal toFunctionValues.floatVal(int).FunctionValues.ValueFillergetValueFiller()intintVal(int doc)abstract longlongVal(int doc)java.lang.ObjectobjectVal(int doc)Native Java Object representation of the valueshortshortVal(int doc)java.lang.StringstrVal(int doc)java.lang.StringtoString(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 java.io.IOException- Overrides:
byteValin classFunctionValues- Throws:
java.io.IOException
-
shortVal
public short shortVal(int doc) throws java.io.IOException- Overrides:
shortValin classFunctionValues- Throws:
java.io.IOException
-
floatVal
public float floatVal(int doc) throws java.io.IOException- Overrides:
floatValin classFunctionValues- Throws:
java.io.IOException
-
intVal
public int intVal(int doc) throws java.io.IOException- Overrides:
intValin classFunctionValues- Throws:
java.io.IOException
-
longVal
public abstract long longVal(int doc) throws java.io.IOException- Overrides:
longValin classFunctionValues- Throws:
java.io.IOException
-
doubleVal
public double doubleVal(int doc) throws java.io.IOException- Overrides:
doubleValin classFunctionValues- Throws:
java.io.IOException
-
boolVal
public boolean boolVal(int doc) throws java.io.IOException- Overrides:
boolValin classFunctionValues- Throws:
java.io.IOException
-
strVal
public java.lang.String strVal(int doc) throws java.io.IOException- Overrides:
strValin classFunctionValues- Throws:
java.io.IOException
-
objectVal
public java.lang.Object objectVal(int doc) throws java.io.IOExceptionDescription copied from class:FunctionValuesNative Java Object representation of the value- Overrides:
objectValin classFunctionValues- Throws:
java.io.IOException
-
toString
public java.lang.String toString(int doc) throws java.io.IOException- Specified by:
toStringin classFunctionValues- Throws:
java.io.IOException
-
externalToLong
protected long externalToLong(java.lang.String extVal)
-
getRangeScorer
public ValueSourceScorer getRangeScorer(Weight weight, LeafReaderContext readerContext, java.lang.String lowerVal, java.lang.String upperVal, boolean includeLower, boolean includeUpper)
Description copied from class:FunctionValuesYields aScorerthat matches documents with values between the specified range, and that which produces scores equal toFunctionValues.floatVal(int).- Overrides:
getRangeScorerin classFunctionValues
-
getValueFiller
public FunctionValues.ValueFiller getValueFiller()
- Overrides:
getValueFillerin classFunctionValues
-
-