Class FieldProjectionValueStepImpl<T>
java.lang.Object
org.hibernate.search.engine.search.projection.dsl.impl.FieldProjectionOptionsStepImpl<T,T>
org.hibernate.search.engine.search.projection.dsl.impl.FieldProjectionValueStepImpl<T>
- All Implemented Interfaces:
FieldProjectionOptionsStep<FieldProjectionOptionsStepImpl<T,,T>, T> FieldProjectionValueStep<FieldProjectionOptionsStepImpl<T,,T>, T> ProjectionFinalStep<T>
public final class FieldProjectionValueStepImpl<T>
extends FieldProjectionOptionsStepImpl<T,T>
implements FieldProjectionValueStep<FieldProjectionOptionsStepImpl<T,T>,T>
-
Field Summary
Fields inherited from class org.hibernate.search.engine.search.projection.dsl.impl.FieldProjectionOptionsStepImpl
fieldProjectionBuilder -
Constructor Summary
ConstructorsConstructorDescriptionFieldProjectionValueStepImpl(SearchProjectionDslContext<?> dslContext, String fieldPath, Class<T> clazz, ValueModel valueModel) -
Method Summary
Modifier and TypeMethodDescriptionmulti()Defines the projection as multi-valued, i.e. returningList<T>instead ofT.Create aSearchProjectioninstance matching the definition given in the previous DSL steps.
-
Constructor Details
-
FieldProjectionValueStepImpl
public FieldProjectionValueStepImpl(SearchProjectionDslContext<?> dslContext, String fieldPath, Class<T> clazz, ValueModel valueModel)
-
-
Method Details
-
multi
Description copied from interface:FieldProjectionValueStepDefines the projection as multi-valued, i.e. returningList<T>instead ofT.Calling
FieldProjectionValueStep.multi()is mandatory for multi-valued fields, otherwise the projection will throw an exception upon creating the query.- Specified by:
multiin interfaceFieldProjectionValueStep<FieldProjectionOptionsStepImpl<T,T>, T> - Returns:
- A new step to define optional parameters for the multi-valued projections.
-
toProjection
Description copied from interface:ProjectionFinalStepCreate aSearchProjectioninstance matching the definition given in the previous DSL steps.- Specified by:
toProjectionin interfaceProjectionFinalStep<T>- Overrides:
toProjectionin classFieldProjectionOptionsStepImpl<T,T> - Returns:
- The
SearchProjectioninstance.
-