|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.lucene.search.function.ValueSource
public abstract class ValueSource
Expert: source of values for basic function queries.
At its default/simplest form, values - one per doc - are used as the score of that doc.
Values are instantiated as
DocValues for a particular reader.
ValueSource implementations differ in RAM requirements: it would always be a factor of the number of documents, but for each document the number of bytes can be 1, 2, 4, or 8.
| Constructor Summary | |
|---|---|
ValueSource()
|
|
| Method Summary | |
|---|---|
abstract String |
description()
description of field, used in explain() |
abstract boolean |
equals(Object o)
Needed for possible caching of query results - used by ValueSourceQuery.equals(Object). |
abstract DocValues |
getValues(IndexReader reader)
Return the DocValues used by the function query. |
abstract int |
hashCode()
Needed for possible caching of query results - used by ValueSourceQuery.hashCode(). |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ValueSource()
| Method Detail |
|---|
public abstract DocValues getValues(IndexReader reader)
throws IOException
reader - the IndexReader used to read these values.
If any caching is involved, that caching would also be IndexReader based.
IOException - for any error.public abstract String description()
public String toString()
toString in class Objectpublic abstract boolean equals(Object o)
ValueSourceQuery.equals(Object).
equals in class ObjectObject.equals(Object)public abstract int hashCode()
ValueSourceQuery.hashCode().
hashCode in class ObjectObject.hashCode()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||