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 |
|---|---|
|
DocTermsIndexDocValues(ValueSource vs,
LeafReaderContext context,
String field) |
protected |
DocTermsIndexDocValues(ValueSource vs,
SortedDocValues termsIndex) |
| 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
|
ValueSourceScorer |
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 value
|
int |
ordVal(int doc) |
String |
strVal(int doc) |
String |
toString(int doc) |
protected abstract String |
toTerm(String readableValue) |
protected final SortedDocValues termsIndex
protected final ValueSource vs
protected final MutableValueStr val
protected final CharsRefBuilder spareChars
public DocTermsIndexDocValues(ValueSource vs, LeafReaderContext context, String field) throws IOException
IOExceptionprotected DocTermsIndexDocValues(ValueSource vs, SortedDocValues termsIndex)
public boolean exists(int doc)
FunctionValuesexists in class FunctionValuespublic int ordVal(int doc)
ordVal in class FunctionValuesdoc - The doc to retrieve to sort ordinal forpublic int numOrd()
numOrd in class FunctionValuespublic boolean bytesVal(int doc,
BytesRefBuilder target)
FunctionValuesbytesVal in class FunctionValuespublic String strVal(int doc)
strVal in class FunctionValuespublic boolean boolVal(int doc)
boolVal in class FunctionValuespublic abstract Object objectVal(int doc)
FunctionValuesobjectVal in class FunctionValuespublic ValueSourceScorer getRangeScorer(IndexReader reader, String lowerVal, String upperVal, boolean includeLower, boolean includeUpper)
getRangeScorer in class FunctionValuespublic String toString(int doc)
toString in class FunctionValuespublic FunctionValues.ValueFiller getValueFiller()
getValueFiller in class FunctionValuesCopyright © 2000-2015 Apache Software Foundation. All Rights Reserved.