Class LuceneByMappedTypeProjection<P>
- java.lang.Object
-
- org.hibernate.search.backend.lucene.search.projection.impl.LuceneByMappedTypeProjection<P>
-
- All Implemented Interfaces:
LuceneSearchProjection<P>,SearchProjection<P>
public class LuceneByMappedTypeProjection<P> extends Object
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.hibernate.search.backend.lucene.search.projection.impl.LuceneSearchProjection
LuceneSearchProjection.Extractor<E,P>
-
-
Constructor Summary
Constructors Constructor Description LuceneByMappedTypeProjection(LuceneSearchIndexScope<?> scope, Map<String,LuceneSearchProjection<? extends P>> inners)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Set<String>indexNames()LuceneSearchProjection.Extractor<?,P>request(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.StringtoString()
-
-
-
Constructor Detail
-
LuceneByMappedTypeProjection
public LuceneByMappedTypeProjection(LuceneSearchIndexScope<?> scope, Map<String,LuceneSearchProjection<? extends P>> inners)
-
-
Method Detail
-
request
public LuceneSearchProjection.Extractor<?,P> request(ProjectionRequestContext context)
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
public final Set<String> indexNames()
- Specified by:
indexNamesin interfaceLuceneSearchProjection<P>
-
-