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
ConstructorsConstructorDescriptionCompositeProjectionValueStepImpl(CompositeProjectionBuilder builder, SearchProjection<?>[] inners, ProjectionCompositor<?, T> compositor) -
Method Summary
Modifier and TypeMethodDescriptionmulti()Defines the projection as multi-valued, i.e. returningList<T>instead ofT.Methods inherited from class org.hibernate.search.engine.search.projection.dsl.impl.CompositeProjectionOptionsStepImpl
toProjectionMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.hibernate.search.engine.search.projection.dsl.ProjectionFinalStep
toProjection
-
Constructor Details
-
CompositeProjectionValueStepImpl
public CompositeProjectionValueStepImpl(CompositeProjectionBuilder builder, SearchProjection<?>[] inners, ProjectionCompositor<?, T> compositor)
-
-
Method Details
-
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.
-