|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.solr.search.function.ValueSource
public abstract class ValueSource
Instantiates DocValues
for a particular reader.
Often used when creating a FunctionQuery
.
Constructor Summary | |
---|---|
ValueSource()
|
Method Summary | |
---|---|
void |
createWeight(Map context,
Searcher searcher)
Implementations should propagate createWeight to sub-ValueSources which can optionally store weight info in the context. |
abstract String |
description()
description of field, used in explain() |
abstract boolean |
equals(Object o)
|
SortField |
getSortField(boolean reverse)
EXPERIMENTAL: This method is subject to change. |
DocValues |
getValues(IndexReader reader)
Deprecated. |
DocValues |
getValues(Map context,
IndexReader reader)
Gets the values for this reader and the context that was previously passed to createWeight() |
abstract int |
hashCode()
|
static Map |
newContext()
Returns a new non-threadsafe context map. |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ValueSource()
Method Detail |
---|
@Deprecated public DocValues getValues(IndexReader reader) throws IOException
IOException
public DocValues getValues(Map context, IndexReader reader) throws IOException
IOException
public abstract boolean equals(Object o)
equals
in class Object
public abstract int hashCode()
hashCode
in class Object
public abstract String description()
public String toString()
toString
in class Object
public void createWeight(Map context, Searcher searcher) throws IOException
IOException
public static Map newContext()
public SortField getSortField(boolean reverse) throws IOException
Get the SortField for this ValueSource. Uses the getValues(java.util.Map, IndexReader)
to populate the SortField.
reverse
- true if this is a reverse sort.
SortField
for the ValueSource
IOException
- if there was a problem reading the values.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |