Class CompositeProjectionValueStepImpl<T>
- java.lang.Object
-
- org.hibernate.search.engine.search.projection.dsl.impl.CompositeProjectionOptionsStepImpl<T,T>
-
- org.hibernate.search.engine.search.projection.dsl.impl.CompositeProjectionValueStepImpl<T>
-
- All Implemented Interfaces:
CompositeProjectionOptionsStep<CompositeProjectionOptionsStepImpl<T,T>,T>,CompositeProjectionValueStep<CompositeProjectionOptionsStepImpl<T,T>,T>,ProjectionFinalStep<T>
public class CompositeProjectionValueStepImpl<T> extends CompositeProjectionOptionsStepImpl<T,T> implements CompositeProjectionValueStep<CompositeProjectionOptionsStepImpl<T,T>,T>
-
-
Constructor Summary
Constructors Constructor Description CompositeProjectionValueStepImpl(CompositeProjectionBuilder builder, SearchProjection<?>[] inners, ProjectionCompositor<?,T> compositor)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CompositeProjectionOptionsStep<?,List<T>>multi()Defines the projection as multi-valued, i.e.-
Methods inherited from class org.hibernate.search.engine.search.projection.dsl.impl.CompositeProjectionOptionsStepImpl
toProjection
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.hibernate.search.engine.search.projection.dsl.ProjectionFinalStep
toProjection
-
-
-
-
Constructor Detail
-
CompositeProjectionValueStepImpl
public CompositeProjectionValueStepImpl(CompositeProjectionBuilder builder, SearchProjection<?>[] inners, ProjectionCompositor<?,T> compositor)
-
-
Method Detail
-
multi
public CompositeProjectionOptionsStep<?,List<T>> multi()
Description copied from interface:CompositeProjectionValueStepDefines the projection as multi-valued, i.e. returningList<T>instead ofT.Calling
CompositeProjectionValueStep.multi()is mandatory forobject projectionson multi-valued object fields, otherwise the projection will throw an exception upon creating the search query.Calling
CompositeProjectionValueStep.multi()onbasic composite projectionsis generally not useful: the only effect is that projected values will be wrapped in a one-elementList.- Specified by:
multiin interfaceCompositeProjectionValueStep<CompositeProjectionOptionsStepImpl<T,T>,T>- Returns:
- A new step to define optional parameters for the projection.
-
-