Class ElasticsearchFieldProjection<F,V,P,T>
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,T>
- 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>
A projection on the values of an index field.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic classstatic classNested 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
Modifier and TypeMethodDescriptionElasticsearchFieldProjection<F,V, P, T>.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.toString()Methods inherited from class org.hibernate.search.backend.elasticsearch.search.projection.impl.AbstractElasticsearchProjection
indexNames
-
Method Details
-
toString
-
request
public ElasticsearchFieldProjection<F,V, requestP, T>.org.hibernate.search.backend.elasticsearch.search.projection.impl.ElasticsearchFieldProjection.ValueFieldExtractor<?> (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.
-