|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.lucene.queries.function.ValueSource
public abstract class ValueSource
Instantiates FunctionValues
for a particular reader.
Often used when creating a FunctionQuery
.
Constructor Summary | |
---|---|
ValueSource()
|
Method Summary | |
---|---|
void |
createWeight(Map context,
IndexSearcher 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. |
abstract FunctionValues |
getValues(Map context,
AtomicReaderContext readerContext)
Gets the values for this reader and the context that was previously passed to createWeight() |
abstract int |
hashCode()
|
static Map |
newContext(IndexSearcher searcher)
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 |
---|
public abstract FunctionValues getValues(Map context, AtomicReaderContext readerContext) 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, IndexSearcher searcher) throws IOException
IOException
public static Map newContext(IndexSearcher searcher)
public SortField getSortField(boolean reverse)
Get the SortField for this ValueSource. Uses the getValues(java.util.Map, AtomicReaderContext)
to populate the SortField.
reverse
- true if this is a reverse sort.
SortField
for the ValueSource
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |