Class LuceneObjectProjection<E,V,P>
java.lang.Object
org.hibernate.search.backend.lucene.search.projection.impl.LuceneObjectProjection<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:
LuceneSearchProjection<P>,SearchProjection<P>
A projection that yields one composite value per object in a given object field.
Not to be confused with LuceneCompositeProjection.
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface org.hibernate.search.backend.lucene.search.projection.impl.LuceneSearchProjection
LuceneSearchProjection.Extractor<E,P> -
Field Summary
Fields inherited from interface org.hibernate.search.backend.lucene.search.projection.impl.LuceneSearchProjection
log -
Constructor Summary
ConstructorsConstructorDescriptionLuceneObjectProjection(org.hibernate.search.backend.lucene.search.projection.impl.LuceneObjectProjection.Builder builder, LuceneSearchProjection<?>[] inners, ProjectionCompositor<E, V> compositor, ProjectionAccumulator.Provider<V, P> accumulatorProvider) -
Method Summary
Modifier and TypeMethodDescriptionrequest(ProjectionRequestContext context) Request the collection of per-document data that will be used inLuceneSearchProjection.Extractor.values(ProjectionExtractContext), making sure that the requirements for this projection are met.toString()
-
Constructor Details
-
LuceneObjectProjection
public LuceneObjectProjection(org.hibernate.search.backend.lucene.search.projection.impl.LuceneObjectProjection.Builder builder, LuceneSearchProjection<?>[] inners, ProjectionCompositor<E, V> compositor, ProjectionAccumulator.Provider<V, P> accumulatorProvider)
-
-
Method Details
-
toString
-
request
Description copied from interface:LuceneSearchProjectionRequest the collection of per-document data that will be used inLuceneSearchProjection.Extractor.values(ProjectionExtractContext), making sure that the requirements for this projection are met.- Parameters:
context- An execution context for the request.- Returns:
- An
LuceneSearchProjection.Extractor, to extract the result of the projection from the Elasticsearch response.
-
indexNames
- Specified by:
indexNamesin interfaceLuceneSearchProjection<P>
-