public class SolrEntityQueryMixin extends Object implements EntityFinder, SolrSearch
Constructor and Description |
---|
SolrEntityQueryMixin() |
Modifier and Type | Method and Description |
---|---|
long |
countEntities(Class<?> resultType,
Predicate<Composite> whereClause,
Map<String,Object> variables)
Count entities matching the query criterion.
|
Stream<EntityReference> |
findEntities(Class<?> resultType,
Predicate<Composite> whereClause,
List<OrderBy> orderBySegments,
Integer firstResult,
Integer maxResults,
Map<String,Object> variables)
Find entities matching the query criterion.
|
EntityReference |
findEntity(Class<?> resultType,
Predicate<Composite> whereClause,
Map<String,Object> variables)
Find a single entity matching the query criterion.
|
org.apache.solr.common.SolrDocumentList |
search(String queryString) |
public Stream<EntityReference> findEntities(Class<?> resultType, Predicate<Composite> whereClause, List<OrderBy> orderBySegments, Integer firstResult, Integer maxResults, Map<String,Object> variables) throws EntityFinderException
EntityFinder
findEntities
in interface EntityFinder
resultType
- Type that the entities must have.whereClause
- Where clause specification.orderBySegments
- OrderingfirstResult
- Index of the first returned entity.maxResults
- Maximum returned entities.variables
- Query variablesEntityFinderException
- on errorpublic EntityReference findEntity(Class<?> resultType, @Optional Predicate<Composite> whereClause, Map<String,Object> variables) throws EntityFinderException
EntityFinder
findEntity
in interface EntityFinder
resultType
- Type that the entity must have.whereClause
- Where clause specification.variables
- Query variablesEntityFinderException
- on errorpublic long countEntities(Class<?> resultType, @Optional Predicate<Composite> whereClause, Map<String,Object> variables) throws EntityFinderException
EntityFinder
countEntities
in interface EntityFinder
resultType
- Type that the entities must have.whereClause
- Where clause specification.variables
- Query variablesEntityFinderException
- on errorpublic org.apache.solr.common.SolrDocumentList search(String queryString) throws org.apache.solr.client.solrj.SolrServerException
search
in interface SolrSearch
org.apache.solr.client.solrj.SolrServerException