Class ElasticsearchEntityCompositeProjection<E>
java.lang.Object
org.hibernate.search.backend.elasticsearch.search.projection.impl.AbstractElasticsearchProjection<E>
org.hibernate.search.backend.elasticsearch.search.projection.impl.ElasticsearchEntityCompositeProjection<E>
- All Implemented Interfaces:
ElasticsearchSearchProjection<E>,SearchProjection<E>
-
Nested Class Summary
Nested classes/interfaces inherited from class org.hibernate.search.backend.elasticsearch.search.projection.impl.AbstractElasticsearchProjection
AbstractElasticsearchProjection.AbstractBuilder<P>Nested classes/interfaces inherited from interface org.hibernate.search.backend.elasticsearch.search.projection.impl.ElasticsearchSearchProjection
ElasticsearchSearchProjection.Extractor<E,P> -
Field Summary
Fields inherited from class org.hibernate.search.backend.elasticsearch.search.projection.impl.AbstractElasticsearchProjection
indexNamesFields inherited from interface org.hibernate.search.backend.elasticsearch.search.projection.impl.ElasticsearchSearchProjection
log -
Constructor Summary
ConstructorsConstructorDescriptionElasticsearchEntityCompositeProjection(ElasticsearchSearchIndexScope<?> scope, ElasticsearchSearchProjection<E> delegate) -
Method Summary
Modifier and TypeMethodDescriptionrequest(com.google.gson.JsonObject requestBody, ProjectionRequestContext context) Contributes to the request, making sure that the requirements for this projection are met, and creating anElasticsearchSearchProjection.Extractorthat will be able to extract the result of the projection from the Elasticsearch response.Methods inherited from class org.hibernate.search.backend.elasticsearch.search.projection.impl.AbstractElasticsearchProjection
indexNames
-
Constructor Details
-
ElasticsearchEntityCompositeProjection
public ElasticsearchEntityCompositeProjection(ElasticsearchSearchIndexScope<?> scope, ElasticsearchSearchProjection<E> delegate)
-
-
Method Details
-
request
public ElasticsearchSearchProjection.Extractor<?,E> request(com.google.gson.JsonObject requestBody, ProjectionRequestContext context) Description copied from interface:ElasticsearchSearchProjectionContributes to the request, making sure that the requirements for this projection are met, and creating anElasticsearchSearchProjection.Extractorthat will be able to extract the result of the projection from the Elasticsearch response.- Parameters:
requestBody- The request body.context- An execution context for the request.- Returns:
- An
ElasticsearchSearchProjection.Extractor, to extract the result of the projection from the Elasticsearch response.
-