Class ElasticsearchObjectProjection<E,V,P>
- java.lang.Object
-
- org.hibernate.search.backend.elasticsearch.search.projection.impl.AbstractElasticsearchProjection<P>
-
- org.hibernate.search.backend.elasticsearch.search.projection.impl.ElasticsearchObjectProjection<E,V,P>
-
- Type Parameters:
E- The type of the temporary storage for component values.V- The type of a single composed value.P- The type of the final projection result representing an accumulation of composed values of typeV.
- All Implemented Interfaces:
ElasticsearchSearchProjection<P>,SearchProjection<P>
public class ElasticsearchObjectProjection<E,V,P> extends AbstractElasticsearchProjection<P>
A projection that yields one composite value per object in a given object field.Not to be confused with
ElasticsearchCompositeProjection.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classElasticsearchObjectProjection.Factory-
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
indexNames
-
Fields inherited from interface org.hibernate.search.backend.elasticsearch.search.projection.impl.ElasticsearchSearchProjection
log
-
-
Constructor Summary
Constructors Constructor Description ElasticsearchObjectProjection(org.hibernate.search.backend.elasticsearch.search.projection.impl.ElasticsearchObjectProjection.Builder builder, ElasticsearchSearchProjection<?>[] inners, ProjectionCompositor<E,V> compositor, ProjectionAccumulator.Provider<V,P> accumulatorProvider)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ElasticsearchSearchProjection.Extractor<?,P>request(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.StringtoString()-
Methods inherited from class org.hibernate.search.backend.elasticsearch.search.projection.impl.AbstractElasticsearchProjection
indexNames
-
-
-
-
Constructor Detail
-
ElasticsearchObjectProjection
public ElasticsearchObjectProjection(org.hibernate.search.backend.elasticsearch.search.projection.impl.ElasticsearchObjectProjection.Builder builder, ElasticsearchSearchProjection<?>[] inners, ProjectionCompositor<E,V> compositor, ProjectionAccumulator.Provider<V,P> accumulatorProvider)
-
-
Method Detail
-
request
public ElasticsearchSearchProjection.Extractor<?,P> 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.
-
-