VMware GemFire Search Java API Reference
Package org.apache.geode.cache.lucene
Interface LuceneQueryProvider
-
- All Superinterfaces:
java.io.Serializable
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface public interface LuceneQueryProvider extends java.io.SerializableA factory for
Queryobjects. An implementation of this interface is required byLuceneQueryFactory.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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description org.apache.lucene.search.QuerygetQuery(LuceneIndex index)
-
-
-
Method Detail
-
getQuery
org.apache.lucene.search.Query getQuery(LuceneIndex index) throws LuceneQueryException
- 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.
-
-