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 class
Custom 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 TypeMethodDescriptionboolean
boolVal
(int doc) boolean
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 documentgetRangeScorer
(IndexReader reader, String lowerVal, String upperVal, boolean includeLower, boolean includeUpper) int
numOrd()
abstract Object
objectVal
(int doc) Native Java Object representation of the valueint
ordVal
(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: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
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
- Overrides:
strVal
in classFunctionValues
-
boolVal
public boolean boolVal(int doc) - Overrides:
boolVal
in classFunctionValues
-
objectVal
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
- Specified by:
toString
in classFunctionValues
-
getValueFiller
- Overrides:
getValueFiller
in classFunctionValues
-