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 classDocTermsIndexDocValues.DocTermsIndexExceptionCustom 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, java.lang.String field)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description booleanboolVal(int doc)booleanbytesVal(int doc, BytesRef target)returns the bytes representation of the string val - TODO: should this return the indexed raw bytes not?booleanexists(int doc)Returns true if there is a value for this documentValueSourceScorergetRangeScorer(IndexReader reader, java.lang.String lowerVal, java.lang.String upperVal, boolean includeLower, boolean includeUpper)FunctionValues.ValueFillergetValueFiller()intnumOrd()abstract java.lang.ObjectobjectVal(int doc)Native Java Object representation of the valueintordVal(int doc)java.lang.StringstrVal(int doc)java.lang.StringtoString(int doc)
-
-
-
Constructor Detail
-
DocTermsIndexDocValues
public DocTermsIndexDocValues(ValueSource vs, AtomicReaderContext context, java.lang.String field) throws java.io.IOException
- Throws:
java.io.IOException
-
-
Method Detail
-
exists
public boolean exists(int doc)
Description copied from class:FunctionValuesReturns true if there is a value for this document- Overrides:
existsin classFunctionValues
-
ordVal
public int ordVal(int doc)
- Overrides:
ordValin 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:
numOrdin classFunctionValues- Returns:
- the number of unique sort ordinals this instance has
-
bytesVal
public boolean bytesVal(int doc, BytesRef target)Description copied from class:FunctionValuesreturns the bytes representation of the string val - TODO: should this return the indexed raw bytes not?- Overrides:
bytesValin classFunctionValues
-
strVal
public java.lang.String strVal(int doc)
- Overrides:
strValin classFunctionValues
-
boolVal
public boolean boolVal(int doc)
- Overrides:
boolValin classFunctionValues
-
objectVal
public abstract java.lang.Object objectVal(int doc)
Description copied from class:FunctionValuesNative Java Object representation of the value- Overrides:
objectValin classFunctionValues
-
getRangeScorer
public ValueSourceScorer getRangeScorer(IndexReader reader, java.lang.String lowerVal, java.lang.String upperVal, boolean includeLower, boolean includeUpper)
- Overrides:
getRangeScorerin classFunctionValues
-
toString
public java.lang.String toString(int doc)
- Specified by:
toStringin classFunctionValues
-
getValueFiller
public FunctionValues.ValueFiller getValueFiller()
- Overrides:
getValueFillerin classFunctionValues
-
-