Class DocTermsIndexDocValues
- java.lang.Object
-
- org.apache.lucene.queries.function.FunctionValues
-
- org.apache.lucene.queries.function.docvalues.DocTermsIndexDocValues
-
public abstract class DocTermsIndexDocValues extends FunctionValues
Serves as base class for FunctionValues based on DocTermsIndex.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
DocTermsIndexDocValues.DocTermsIndexException
Custom Exception to be thrown when the DocTermsIndex for a field cannot be generated-
Nested classes/interfaces inherited from class org.apache.lucene.queries.function.FunctionValues
FunctionValues.ValueFiller
-
-
Constructor Summary
Constructors Constructor Description DocTermsIndexDocValues(ValueSource vs, AtomicReaderContext context, String field)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description boolean
boolVal(int doc)
boolean
bytesVal(int doc, BytesRef target)
returns the bytes representation of the string val - TODO: should this return the indexed raw bytes not?boolean
exists(int doc)
Returns true if there is a value for this documentValueSourceScorer
getRangeScorer(IndexReader reader, String lowerVal, String upperVal, boolean includeLower, boolean includeUpper)
FunctionValues.ValueFiller
getValueFiller()
int
numOrd()
abstract Object
objectVal(int doc)
Native Java Object representation of the valueint
ordVal(int doc)
String
strVal(int doc)
String
toString(int doc)
-
-
-
Constructor Detail
-
DocTermsIndexDocValues
public DocTermsIndexDocValues(ValueSource vs, AtomicReaderContext context, String field) throws IOException
- Throws:
IOException
-
-
Method Detail
-
exists
public boolean exists(int doc)
Description copied from class:FunctionValues
Returns true if there is a value for this document- Overrides:
exists
in classFunctionValues
-
ordVal
public int ordVal(int doc)
- Overrides:
ordVal
in classFunctionValues
- Parameters:
doc
- The doc to retrieve to sort ordinal for- Returns:
- the sort ordinal for the specified doc TODO: Maybe we can just use intVal for this...
-
numOrd
public int numOrd()
- Overrides:
numOrd
in classFunctionValues
- Returns:
- the number of unique sort ordinals this instance has
-
bytesVal
public boolean bytesVal(int doc, BytesRef target)
Description copied from class:FunctionValues
returns the bytes representation of the string val - TODO: should this return the indexed raw bytes not?- Overrides:
bytesVal
in classFunctionValues
-
strVal
public String strVal(int doc)
- Overrides:
strVal
in classFunctionValues
-
boolVal
public boolean boolVal(int doc)
- Overrides:
boolVal
in classFunctionValues
-
objectVal
public abstract Object objectVal(int doc)
Description copied from class:FunctionValues
Native Java Object representation of the value- Overrides:
objectVal
in classFunctionValues
-
getRangeScorer
public ValueSourceScorer getRangeScorer(IndexReader reader, String lowerVal, String upperVal, boolean includeLower, boolean includeUpper)
- Overrides:
getRangeScorer
in classFunctionValues
-
toString
public String toString(int doc)
- Specified by:
toString
in classFunctionValues
-
getValueFiller
public FunctionValues.ValueFiller getValueFiller()
- Overrides:
getValueFiller
in classFunctionValues
-
-