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 Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAbstractSolrQuery(String collection, SolrOperations solrOperations, SolrQueryMethod solrQueryMethod) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidappendProjection(Query query) protected abstract QuerycreateQuery(SolrParameterAccessor parameterAccessor) protected SimpleQuerycreateQueryFromString(String queryString, SolrParameterAccessor parameterAccessor) intgetLimit()protected org.springframework.data.domain.PageablegetLimitingPageable(org.springframework.data.domain.Pageable source, int limit) booleanbooleanboolean
-
Field Details
-
UNLIMITED
public final int UNLIMITED- See Also:
-
-
Constructor Details
-
AbstractSolrQuery
protected AbstractSolrQuery(@Nullable String collection, SolrOperations solrOperations, SolrQueryMethod solrQueryMethod) - Parameters:
solrOperations- must not be nullsolrQueryMethod- must not be null
-
-
Method Details
-
execute
- Specified by:
executein interfaceorg.springframework.data.repository.query.RepositoryQuery
-
getQueryMethod
- Specified by:
getQueryMethodin interfaceorg.springframework.data.repository.query.RepositoryQuery
-
appendProjection
-
createQueryFromString
protected SimpleQuery createQueryFromString(String queryString, SolrParameterAccessor parameterAccessor) -
createQuery
-
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)
-