Class CompositeProjectionInnerStepImpl
- java.lang.Object
-
- org.hibernate.search.engine.search.projection.dsl.impl.CompositeProjectionInnerStepImpl
-
- All Implemented Interfaces:
CompositeProjectionInnerStep
public class CompositeProjectionInnerStepImpl extends Object implements CompositeProjectionInnerStep
-
-
Constructor Summary
Constructors Constructor Description CompositeProjectionInnerStepImpl(SearchProjectionDslContext<?> dslContext, SearchProjectionFactory<?,?> projectionFactory)CompositeProjectionInnerStepImpl(SearchProjectionDslContext<?> dslContext, SearchProjectionFactory<?,?> projectionFactory, String objectFieldPath)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <V> CompositeProjectionValueStep<?,V>as(Class<V> objectClass)Defines the result of the composite projection as the result of applying the given function to the single inner projection defined so far.CompositeProjectionFromAsStepfrom(ProjectionFinalStep<?>... dslFinalSteps)Defines multiple inner projections to get values from, based on almost-builtSearchProjections.CompositeProjectionFromAsStepfrom(SearchProjection<?>... projections)Defines multiple inner projections to get values from, based on previously-builtSearchProjections.<V1> CompositeProjectionFrom1AsStep<V1>from(SearchProjection<V1> projection)Defines one inner projection to get values from, based on a previously-builtSearchProjection.<V1,V2>
CompositeProjectionFrom2AsStep<V1,V2>from(SearchProjection<V1> projection1, SearchProjection<V2> projection2)Defines two inner projections to get values from, based on previously-builtSearchProjections.<V1,V2,V3>
CompositeProjectionFrom3AsStep<V1,V2,V3>from(SearchProjection<V1> projection1, SearchProjection<V2> projection2, SearchProjection<V3> projection3)Defines three inner projections to get values from, based on previously-builtSearchProjections.-
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.CompositeProjectionInnerStep
from, from, from
-
-
-
-
Constructor Detail
-
CompositeProjectionInnerStepImpl
public CompositeProjectionInnerStepImpl(SearchProjectionDslContext<?> dslContext, SearchProjectionFactory<?,?> projectionFactory)
-
CompositeProjectionInnerStepImpl
public CompositeProjectionInnerStepImpl(SearchProjectionDslContext<?> dslContext, SearchProjectionFactory<?,?> projectionFactory, String objectFieldPath)
-
-
Method Detail
-
as
public <V> CompositeProjectionValueStep<?,V> as(Class<V> objectClass)
Description copied from interface:CompositeProjectionInnerStepDefines the result of the composite projection as the result of applying the given function to the single inner projection defined so far.- Specified by:
asin interfaceCompositeProjectionInnerStep- Type Parameters:
V- The type of objects returned by the projection.- Parameters:
objectClass- The type of objects returned by the projection. The class is expected to be mapped (generally through annotations) in such a way that it defines the inner projections.- Returns:
- The next DSL step.
-
from
public <V1> CompositeProjectionFrom1AsStep<V1> from(SearchProjection<V1> projection)
Description copied from interface:CompositeProjectionInnerStepDefines one inner projection to get values from, based on a previously-builtSearchProjection.- Specified by:
fromin interfaceCompositeProjectionInnerStep- Type Parameters:
V1- The type of values returned by the inner projection.- Parameters:
projection- The inner projection.- Returns:
- The next DSL step.
-
from
public <V1,V2> CompositeProjectionFrom2AsStep<V1,V2> from(SearchProjection<V1> projection1, SearchProjection<V2> projection2)
Description copied from interface:CompositeProjectionInnerStepDefines two inner projections to get values from, based on previously-builtSearchProjections.- Specified by:
fromin interfaceCompositeProjectionInnerStep- Type Parameters:
V1- The type of values returned by the first inner projection.V2- The type of values returned by the second inner projection.- Parameters:
projection1- The first inner projection.projection2- The second inner projection.- Returns:
- The next DSL step.
-
from
public <V1,V2,V3> CompositeProjectionFrom3AsStep<V1,V2,V3> from(SearchProjection<V1> projection1, SearchProjection<V2> projection2, SearchProjection<V3> projection3)
Description copied from interface:CompositeProjectionInnerStepDefines three inner projections to get values from, based on previously-builtSearchProjections.- Specified by:
fromin interfaceCompositeProjectionInnerStep- Type Parameters:
V1- The type of values returned by the first inner projection.V2- The type of values returned by the second inner projection.V3- The type of values returned by the third inner projection.- Parameters:
projection1- The first inner projection.projection2- The second inner projection.projection3- The third inner projection.- Returns:
- The next DSL step.
-
from
public CompositeProjectionFromAsStep from(SearchProjection<?>... projections)
Description copied from interface:CompositeProjectionInnerStepDefines multiple inner projections to get values from, based on previously-builtSearchProjections.- Specified by:
fromin interfaceCompositeProjectionInnerStep- Parameters:
projections- The inner projections, in order.- Returns:
- The next DSL step.
-
from
public final CompositeProjectionFromAsStep from(ProjectionFinalStep<?>... dslFinalSteps)
Description copied from interface:CompositeProjectionInnerStepDefines multiple inner projections to get values from, based on almost-builtSearchProjections.- Specified by:
fromin interfaceCompositeProjectionInnerStep- Parameters:
dslFinalSteps- The final steps in the projection DSL allowing the retrieval of inner projections, in order.- Returns:
- The next DSL step.
-
-