Class AbstractSolrQuery

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

public abstract class AbstractSolrQuery extends Object implements org.springframework.data.repository.query.RepositoryQuery
Base implementation of a solr specific RepositoryQuery
  • Field Details

  • Constructor Details

    • AbstractSolrQuery

      protected AbstractSolrQuery(@Nullable String collection, SolrOperations solrOperations, SolrQueryMethod solrQueryMethod)
      Parameters:
      solrOperations - must not be null
      solrQueryMethod - must not be null
  • Method Details

    • execute

      public Object execute(Object[] parameters)
      Specified by:
      execute in interface org.springframework.data.repository.query.RepositoryQuery
    • getQueryMethod

      public SolrQueryMethod getQueryMethod()
      Specified by:
      getQueryMethod in interface org.springframework.data.repository.query.RepositoryQuery
    • appendProjection

      protected void appendProjection(@Nullable Query query)
    • createQueryFromString

      protected SimpleQuery createQueryFromString(String queryString, SolrParameterAccessor parameterAccessor)
    • createQuery

      protected abstract Query createQuery(SolrParameterAccessor parameterAccessor)
    • isCountQuery

      public boolean isCountQuery()
      Since:
      1.2
    • isDeleteQuery

      public boolean isDeleteQuery()
      Since:
      1.2
    • isLimiting

      public boolean isLimiting()
      Returns:
      Since:
      1.3
    • getLimit

      public int getLimit()
      Returns:
      Since:
      1.3
    • getLimitingPageable

      protected org.springframework.data.domain.Pageable getLimitingPageable(@Nullable org.springframework.data.domain.Pageable source, int limit)