@FunctionalInterface
public interface LuceneQueryProvider
extends java.io.Serializable
A factory for Query
objects. An implementation of this interface is required by
LuceneQueryFactory.create(String, String, LuceneQueryProvider)
so that a query can be
serialized and distributed to multiple nodes.
DataSerializer.writeObject(Object, DataOutput)
,Modifier and Type | Method and Description |
---|---|
Query |
getQuery(LuceneIndex index) |
Query getQuery(LuceneIndex index) throws LuceneQueryException
index
- The LuceneIndex
the query is being executed against.Query
which will be executed against a Lucene index.LuceneQueryException
- if the provider fails to construct the query object. This will be
propagated to callers of the LuceneQuery
find methods.