Module spring.data.elasticsearch
Class ReactiveRepositorySearchTemplateQuery
java.lang.Object
org.springframework.data.elasticsearch.repository.query.ReactiveRepositorySearchTemplateQuery
- All Implemented Interfaces:
RepositoryQuery
A reactive repository query that uses a search template already stored in Elasticsearch.
- Since:
- 5.5
- Author:
- P.J. Meisch (pj.meisch@sothawo.com)
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final ValueEvaluationContextProviderprotected final ReactiveElasticsearchQueryMethod -
Constructor Summary
ConstructorsConstructorDescriptionReactiveRepositorySearchTemplateQuery(ReactiveElasticsearchQueryMethod queryMethod, ReactiveElasticsearchOperations elasticsearchOperations, ValueExpressionDelegate valueExpressionDelegate, String id) -
Method Summary
Modifier and TypeMethodDescriptionprotected BaseQuerycreateQuery(ElasticsearchParametersParameterAccessor parameterAccessor) Creates aQueryinstance using the givenParameterAccessorprotected ReactiveElasticsearchOperationsgetId()protected MappingContext<? extends ElasticsearchPersistentEntity<?>,ElasticsearchPersistentProperty> booleanprotected booleanprotected boolean
-
Field Details
-
queryMethod
-
evaluationContextProvider
-
-
Constructor Details
-
ReactiveRepositorySearchTemplateQuery
public ReactiveRepositorySearchTemplateQuery(ReactiveElasticsearchQueryMethod queryMethod, ReactiveElasticsearchOperations elasticsearchOperations, ValueExpressionDelegate valueExpressionDelegate, String id)
-
-
Method Details
-
getId
-
getParams
-
isCountQuery
public boolean isCountQuery() -
isDeleteQuery
protected boolean isDeleteQuery() -
isExistsQuery
protected boolean isExistsQuery() -
createQuery
Creates aQueryinstance using the givenParameterAccessor- Parameters:
parameterAccessor- must not be null.- Returns:
-
execute
- Specified by:
executein interfaceRepositoryQuery
-
getQueryMethod
- Specified by:
getQueryMethodin interfaceRepositoryQuery
-
getElasticsearchOperations
-
getMappingContext
protected MappingContext<? extends ElasticsearchPersistentEntity<?>,ElasticsearchPersistentProperty> getMappingContext()
-