|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.lucene.search.function.DocValues
public abstract class DocValues
Expert: represents field values as different types.
Normally created via a
ValueSuorce
for a particular field and reader.
Constructor Summary | |
---|---|
DocValues()
|
Method Summary | |
---|---|
double |
doubleVal(int doc)
Return doc value as a double. |
Explanation |
explain(int doc)
Explain the scoring value for the input doc. |
abstract float |
floatVal(int doc)
Return doc value as a float. |
float |
getAverageValue()
Returns the average of all values or Float.NaN if this
DocValues instance does not contain any value. |
float |
getMaxValue()
Returns the maximum of all values or Float.NaN if this
DocValues instance does not contain any value. |
float |
getMinValue()
Returns the minimum of all values or Float.NaN if this
DocValues instance does not contain any value. |
int |
intVal(int doc)
Return doc value as an int. |
long |
longVal(int doc)
Return doc value as a long. |
String |
strVal(int doc)
Return doc value as a string. |
abstract String |
toString(int doc)
Return a string representation of a doc value, as required for Explanations. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DocValues()
Method Detail |
---|
public abstract float floatVal(int doc)
Mandatory: every DocValues implementation must implement at least this method.
doc
- document whose float value is requested.public int intVal(int doc)
Optional: DocValues implementation can (but don't have to) override this method.
doc
- document whose int value is requested.public long longVal(int doc)
Optional: DocValues implementation can (but don't have to) override this method.
doc
- document whose long value is requested.public double doubleVal(int doc)
Optional: DocValues implementation can (but don't have to) override this method.
doc
- document whose double value is requested.public String strVal(int doc)
Optional: DocValues implementation can (but don't have to) override this method.
doc
- document whose string value is requested.public abstract String toString(int doc)
public Explanation explain(int doc)
public float getMinValue()
Float.NaN
if this
DocValues instance does not contain any value.
This operation is optional
Float.NaN
if this
DocValues instance does not contain any value.public float getMaxValue()
Float.NaN
if this
DocValues instance does not contain any value.
This operation is optional
Float.NaN
if this
DocValues instance does not contain any value.public float getAverageValue()
Float.NaN
if this
DocValues instance does not contain any value. *
This operation is optional
Float.NaN
if this
DocValues instance does not contain any value
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |