Spring Data Solr

org.springframework.data.solr.repository.query
Class AbstractSolrQuery

java.lang.Object
  extended by org.springframework.data.solr.repository.query.AbstractSolrQuery
All Implemented Interfaces:
RepositoryQuery
Direct Known Subclasses:
PartTreeSolrQuery, StringBasedSolrQuery

public abstract class AbstractSolrQuery
extends Object
implements RepositoryQuery

Base implementation of a solr specific RepositoryQuery

Author:
Christoph Strobl, Luke Corpe, Andrey Paramonov, Francisco Spaeth

Constructor Summary
protected AbstractSolrQuery(SolrOperations solrOperations, SolrQueryMethod solrQueryMethod)
           
 
Method Summary
protected  void appendProjection(Query query)
           
protected abstract  Query createQuery(SolrParameterAccessor parameterAccessor)
           
protected  SimpleQuery createQueryFromString(String queryString, SolrParameterAccessor parameterAccessor)
           
 Object execute(Object[] parameters)
           
 SolrQueryMethod getQueryMethod()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractSolrQuery

protected AbstractSolrQuery(SolrOperations solrOperations,
                            SolrQueryMethod solrQueryMethod)
Parameters:
solrOperations - must not be null
solrQueryMethod - must not be null
Method Detail

execute

public Object execute(Object[] parameters)
Specified by:
execute in interface RepositoryQuery

getQueryMethod

public SolrQueryMethod getQueryMethod()
Specified by:
getQueryMethod in interface RepositoryQuery

appendProjection

protected void appendProjection(Query query)

createQueryFromString

protected SimpleQuery createQueryFromString(String queryString,
                                            SolrParameterAccessor parameterAccessor)

createQuery

protected abstract Query createQuery(SolrParameterAccessor parameterAccessor)

Spring Data Solr

Copyright © 2011-2014-2014 Pivotal. All Rights Reserved.