org.qi4j.index.solr.internal
Class SolrEntityQueryMixin

java.lang.Object
  extended by org.qi4j.index.solr.internal.SolrEntityQueryMixin
All Implemented Interfaces:
SolrSearch, NamedEntityFinder

public class SolrEntityQueryMixin
extends Object
implements NamedEntityFinder, SolrSearch

JAVADOC


Constructor Summary
SolrEntityQueryMixin()
           
 
Method Summary
 long countEntities(NamedQueryDescriptor name, String resultType, Map<String,Object> variables)
           
 Iterable<EntityReference> findEntities(NamedQueryDescriptor queryDescriptor, String resultType, Map<String,Object> variables, OrderBy[] orderBySegments, Integer firstResult, Integer maxResults)
           
 EntityReference findEntity(NamedQueryDescriptor name, String resultType, Map<String,Object> variables)
           
 org.apache.solr.common.SolrDocumentList search(String queryString)
           
 String showQuery(NamedQueryDescriptor namedQueryDescriptor)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SolrEntityQueryMixin

public SolrEntityQueryMixin()
Method Detail

findEntities

public Iterable<EntityReference> findEntities(NamedQueryDescriptor queryDescriptor,
                                              String resultType,
                                              @Optional
                                              Map<String,Object> variables,
                                              @Optional
                                              OrderBy[] orderBySegments,
                                              @Optional
                                              Integer firstResult,
                                              @Optional
                                              Integer maxResults)
                                       throws EntityFinderException
Specified by:
findEntities in interface NamedEntityFinder
Throws:
EntityFinderException

findEntity

public EntityReference findEntity(NamedQueryDescriptor name,
                                  String resultType,
                                  Map<String,Object> variables)
                           throws EntityFinderException
Specified by:
findEntity in interface NamedEntityFinder
Throws:
EntityFinderException

countEntities

public long countEntities(NamedQueryDescriptor name,
                          String resultType,
                          @Optional
                          Map<String,Object> variables)
                   throws EntityFinderException
Specified by:
countEntities in interface NamedEntityFinder
Throws:
EntityFinderException

search

public org.apache.solr.common.SolrDocumentList search(String queryString)
                                               throws org.apache.solr.client.solrj.SolrServerException
Specified by:
search in interface SolrSearch
Throws:
org.apache.solr.client.solrj.SolrServerException

showQuery

public String showQuery(NamedQueryDescriptor namedQueryDescriptor)
Specified by:
showQuery in interface NamedEntityFinder