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>
A projection that yields one composite value per object in a given object field.
Not to be confused with ElasticsearchCompositeProjection.
-
Nested Class Summary
Nested ClassesNested 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
ConstructorsConstructorDescriptionElasticsearchObjectProjection(org.hibernate.search.backend.elasticsearch.search.projection.impl.ElasticsearchObjectProjection.Builder builder, ElasticsearchSearchProjection<?>[] inners, ProjectionCompositor<E, V> compositor, ProjectionAccumulator.Provider<V, P> accumulatorProvider) -
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.toString()Methods inherited from class org.hibernate.search.backend.elasticsearch.search.projection.impl.AbstractElasticsearchProjection
indexNames
-
Constructor Details
-
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 Details
-
toString
-
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.
-