Package org.apache.geode.cache.lucene
Interface LuceneQueryProvider
- All Superinterfaces:
Serializable
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
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.
Instances of this interface are serialized using the standard
DataSerializer.writeObject(Object, DataOutput),
-
Method Summary
-
Method Details
-
getQuery
- Parameters:
index- TheLuceneIndexthe query is being executed against.- Returns:
- A
Querywhich will be executed against a Lucene index. - Throws:
LuceneQueryException- if the provider fails to construct the query object. This will be propagated to callers of theLuceneQueryfind methods.
-