Class DocTermsIndexDocValues
java.lang.Object
org.apache.lucene.queries.function.FunctionValues
org.apache.lucene.queries.function.docvalues.DocTermsIndexDocValues
Serves as base class for FunctionValues based on DocTermsIndex.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classCustom Exception to be thrown when the DocTermsIndex for a field cannot be generatedNested classes/interfaces inherited from class org.apache.lucene.queries.function.FunctionValues
FunctionValues.ValueFiller -
Constructor Summary
ConstructorsConstructorDescriptionDocTermsIndexDocValues(ValueSource vs, AtomicReaderContext context, String field) -
Method Summary
Modifier and TypeMethodDescriptionbooleanboolVal(int doc) booleanreturns 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 documentgetRangeScorer(IndexReader reader, String lowerVal, String upperVal, boolean includeLower, boolean includeUpper) intnumOrd()abstract ObjectobjectVal(int doc) Native Java Object representation of the valueintordVal(int doc) strVal(int doc) toString(int doc)
-
Constructor Details
-
DocTermsIndexDocValues
public DocTermsIndexDocValues(ValueSource vs, AtomicReaderContext context, String field) throws IOException - Throws:
IOException
-
-
Method Details
-
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
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
- Overrides:
strValin classFunctionValues
-
boolVal
public boolean boolVal(int doc) - Overrides:
boolValin classFunctionValues
-
objectVal
Description copied from class:FunctionValuesNative Java Object representation of the value- Overrides:
objectValin classFunctionValues
-
getRangeScorer
public ValueSourceScorer getRangeScorer(IndexReader reader, String lowerVal, String upperVal, boolean includeLower, boolean includeUpper) - Overrides:
getRangeScorerin classFunctionValues
-
toString
- Specified by:
toStringin classFunctionValues
-
getValueFiller
- Overrides:
getValueFillerin classFunctionValues
-