|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.lucene.search.function.ValueSource org.apache.lucene.search.function.MultiValueSource
public final class MultiValueSource
This class wraps another ValueSource, but protects
against accidental double RAM usage in FieldCache when
a composite reader is passed to getValues(org.apache.lucene.index.IndexReader)
.
NOTE: this class adds a CPU penalty to every lookup, as it must resolve the incoming document to the right sub-reader using a binary search.
Constructor Summary | |
---|---|
MultiValueSource(ValueSource other)
Deprecated. |
Method Summary | |
---|---|
String |
description()
Deprecated. description of field, used in explain() |
boolean |
equals(Object o)
Deprecated. Needed for possible caching of query results - used by ValueSourceQuery.equals(Object) . |
DocValues |
getValues(IndexReader reader)
Deprecated. Return the DocValues used by the function query. |
int |
hashCode()
Deprecated. Needed for possible caching of query results - used by ValueSourceQuery.hashCode() . |
Methods inherited from class org.apache.lucene.search.function.ValueSource |
---|
toString |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public MultiValueSource(ValueSource other)
Method Detail |
---|
public DocValues getValues(IndexReader reader) throws IOException
ValueSource
getValues
in class ValueSource
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 String description()
ValueSource
description
in class ValueSource
public boolean equals(Object o)
ValueSource
ValueSourceQuery.equals(Object)
.
equals
in class ValueSource
Object.equals(Object)
public int hashCode()
ValueSource
ValueSourceQuery.hashCode()
.
hashCode
in class ValueSource
Object.hashCode()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |