org.apache.lucene.queries.function.docvalues
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 BytesRef |
spare |
protected CharsRef |
spareChars |
protected SortedDocValues |
termsIndex |
protected MutableValueStr |
val |
protected ValueSource |
vs |
Constructor and Description |
---|
DocTermsIndexDocValues(ValueSource vs,
AtomicReaderContext context,
String field) |
Modifier and Type | Method and Description |
---|---|
boolean |
boolVal(int doc) |
boolean |
bytesVal(int doc,
BytesRef 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 BytesRef spare
protected final CharsRef spareChars
public DocTermsIndexDocValues(ValueSource vs, AtomicReaderContext context, String field) throws IOException
IOException
public boolean exists(int doc)
FunctionValues
exists
in class FunctionValues
public int ordVal(int doc)
ordVal
in class FunctionValues
doc
- The doc to retrieve to sort ordinal forpublic int numOrd()
numOrd
in class FunctionValues
public boolean bytesVal(int doc, BytesRef target)
FunctionValues
bytesVal
in class FunctionValues
public String strVal(int doc)
strVal
in class FunctionValues
public boolean boolVal(int doc)
boolVal
in class FunctionValues
public abstract Object objectVal(int doc)
FunctionValues
objectVal
in class FunctionValues
public ValueSourceScorer getRangeScorer(IndexReader reader, String lowerVal, String upperVal, boolean includeLower, boolean includeUpper)
getRangeScorer
in class FunctionValues
public String toString(int doc)
toString
in class FunctionValues
public FunctionValues.ValueFiller getValueFiller()
getValueFiller
in class FunctionValues
Copyright © 2000-2013 Apache Software Foundation. All Rights Reserved.