Class ElasticsearchFieldProjection<F,V,P>
- java.lang.Object
-
- org.hibernate.search.backend.elasticsearch.search.projection.impl.AbstractElasticsearchProjection<P>
-
- org.hibernate.search.backend.elasticsearch.search.projection.impl.ElasticsearchFieldProjection<F,V,P>
-
- Type Parameters:
F- The type of individual field values obtained from the backend (before conversion).V- The type of individual field values after conversion.P- The type of the final projection result representing accumulated values of typeV.
- All Implemented Interfaces:
ElasticsearchSearchProjection<P>,SearchProjection<P>
public class ElasticsearchFieldProjection<F,V,P> extends AbstractElasticsearchProjection<P>
A projection on the values of an index field.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classElasticsearchFieldProjection.Builder<F,V>static classElasticsearchFieldProjection.Factory<F>static classElasticsearchFieldProjection.TypeSelector<F>-
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
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.hibernate.search.backend.elasticsearch.search.projection.impl.ElasticsearchFieldProjection.ValueFieldExtractor<?>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
-
-
-
-
Method Detail
-
request
public org.hibernate.search.backend.elasticsearch.search.projection.impl.ElasticsearchFieldProjection.ValueFieldExtractor<?> 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.
-
-