public class ElasticsearchQueryMethod extends QueryMethod
| Constructor and Description |
|---|
ElasticsearchQueryMethod(Method method,
RepositoryMetadata repositoryMetadata,
ProjectionFactory factory,
MappingContext<? extends ElasticsearchPersistentEntity<?>,ElasticsearchPersistentProperty> mappingContext) |
| Modifier and Type | Method and Description |
|---|---|
HighlightQuery |
getAnnotatedHighlightQuery() |
String |
getAnnotatedQuery() |
ElasticsearchEntityMetadata<?> |
getEntityInformation() |
protected MappingContext<? extends ElasticsearchPersistentEntity<?>,ElasticsearchPersistentProperty> |
getMappingContext() |
boolean |
hasAnnotatedHighlight() |
boolean |
hasAnnotatedQuery() |
protected boolean |
isAllowedGenericType(ParameterizedType methodGenericReturnType) |
boolean |
isNotSearchHitMethod()
checks whether the return type of the underlying method is a
SearchHits or a collection of
SearchHit. |
boolean |
isSearchHitMethod()
checks whether the return type of the underlying method is a
SearchHits or a collection of
SearchHit. |
boolean |
isSearchPageMethod()
checks if the return type is
SearchPage. |
Class<?> |
methodReturnType()
retusn the declared return type for this method.
|
createParameters, getDomainClass, getName, getNamedQueryName, getParameters, getResultProcessor, getReturnedObjectType, isCollectionQuery, isModifyingQuery, isPageQuery, isQueryForEntity, isSliceQuery, isStreamQuery, toStringpublic ElasticsearchQueryMethod(Method method, RepositoryMetadata repositoryMetadata, ProjectionFactory factory, MappingContext<? extends ElasticsearchPersistentEntity<?>,ElasticsearchPersistentProperty> mappingContext)
public boolean hasAnnotatedQuery()
public String getAnnotatedQuery()
public boolean hasAnnotatedHighlight()
Highlight annotation present.public HighlightQuery getAnnotatedHighlightQuery()
HighlightQuery built from the Highlight annotation.IllegalArgumentException - if no Highlight annotation is present on the methodhasAnnotatedHighlight()public ElasticsearchEntityMetadata<?> getEntityInformation()
getEntityInformation in class QueryMethodElasticsearchEntityMetadata for the query methods return type.protected MappingContext<? extends ElasticsearchPersistentEntity<?>,ElasticsearchPersistentProperty> getMappingContext()
public boolean isSearchHitMethod()
SearchHits or a collection of
SearchHit.SearchHitt related return typepublic boolean isSearchPageMethod()
SearchPage.public Class<?> methodReturnType()
protected boolean isAllowedGenericType(ParameterizedType methodGenericReturnType)
public boolean isNotSearchHitMethod()
SearchHits or a collection of
SearchHit.SearchHitt related return
typeCopyright © 2011–2021 Pivotal Software, Inc.. All rights reserved.