public abstract class DocTermsIndexDocValues extends FunctionValues
| Modifier and Type | Class and Description |
|---|---|
static class |
DocTermsIndexDocValues.DocTermsIndexException
Custom Exception to be thrown when the DocTermsIndex for a field cannot be generated
|
FunctionValues.ValueFiller| Modifier and Type | Field and Description |
|---|---|
protected CharsRefBuilder |
spareChars |
protected SortedDocValues |
termsIndex |
protected MutableValueStr |
val |
protected ValueSource |
vs |
| Modifier | Constructor and Description |
|---|---|
protected |
DocTermsIndexDocValues(java.lang.String field,
ValueSource vs,
SortedDocValues termsIndex) |
|
DocTermsIndexDocValues(ValueSource vs,
LeafReaderContext context,
java.lang.String field) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
boolVal(int doc) |
boolean |
bytesVal(int doc,
BytesRefBuilder 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 document
|
protected int |
getOrdForDoc(int doc) |
ValueSourceScorer |
getRangeScorer(LeafReaderContext readerContext,
java.lang.String lowerVal,
java.lang.String upperVal,
boolean includeLower,
boolean includeUpper)
Yields a
Scorer that matches documents with values between the specified range,
and that which produces scores equal to FunctionValues.floatVal(int). |
FunctionValues.ValueFiller |
getValueFiller() |
int |
numOrd() |
abstract java.lang.Object |
objectVal(int doc)
Native Java Object representation of the value
|
int |
ordVal(int doc) |
java.lang.String |
strVal(int doc) |
java.lang.String |
toString(int doc) |
protected abstract java.lang.String |
toTerm(java.lang.String readableValue) |
protected final SortedDocValues termsIndex
protected final ValueSource vs
protected final MutableValueStr val
protected final CharsRefBuilder spareChars
public DocTermsIndexDocValues(ValueSource vs, LeafReaderContext context, java.lang.String field) throws java.io.IOException
java.io.IOExceptionprotected DocTermsIndexDocValues(java.lang.String field,
ValueSource vs,
SortedDocValues termsIndex)
protected int getOrdForDoc(int doc)
throws java.io.IOException
java.io.IOExceptionprotected abstract java.lang.String toTerm(java.lang.String readableValue)
public boolean exists(int doc)
throws java.io.IOException
FunctionValuesexists in class FunctionValuesjava.io.IOExceptionpublic int ordVal(int doc)
throws java.io.IOException
ordVal in class FunctionValuesdoc - The doc to retrieve to sort ordinal forjava.io.IOExceptionpublic int numOrd()
numOrd in class FunctionValuespublic boolean bytesVal(int doc,
BytesRefBuilder target)
throws java.io.IOException
FunctionValuesbytesVal in class FunctionValuesjava.io.IOExceptionpublic java.lang.String strVal(int doc)
throws java.io.IOException
strVal in class FunctionValuesjava.io.IOExceptionpublic boolean boolVal(int doc)
throws java.io.IOException
boolVal in class FunctionValuesjava.io.IOExceptionpublic abstract java.lang.Object objectVal(int doc)
throws java.io.IOException
FunctionValuesobjectVal in class FunctionValuesjava.io.IOExceptionpublic ValueSourceScorer getRangeScorer(LeafReaderContext readerContext, java.lang.String lowerVal, java.lang.String upperVal, boolean includeLower, boolean includeUpper) throws java.io.IOException
FunctionValuesScorer that matches documents with values between the specified range,
and that which produces scores equal to FunctionValues.floatVal(int).getRangeScorer in class FunctionValuesjava.io.IOExceptionpublic java.lang.String toString(int doc)
throws java.io.IOException
toString in class FunctionValuesjava.io.IOExceptionpublic FunctionValues.ValueFiller getValueFiller()
getValueFiller in class FunctionValuesCopyright © 2000–2025 The Apache Software Foundation. All rights reserved.