| Package | Description |
|---|---|
| org.hibernate.search.engine.search.projection.dsl | |
| org.hibernate.search.engine.search.query.dsl | |
| org.hibernate.search.engine.search.query.dsl.spi |
| Modifier and Type | Interface and Description |
|---|---|
interface |
CompositeProjectionOptionsStep<S extends CompositeProjectionOptionsStep<?,T>,T>
The initial and final step in a composite projection definition, where optional parameters can be set.
|
interface |
DistanceToFieldProjectionOptionsStep<S extends DistanceToFieldProjectionOptionsStep<?>>
The initial and final step in a "distance to field" projection definition, where optional parameters can be set.
|
interface |
DocumentReferenceProjectionOptionsStep<S extends DocumentReferenceProjectionOptionsStep<?>>
The initial and final step in a "document reference" projection definition, where optional parameters can be set.
|
interface |
EntityProjectionOptionsStep<S extends EntityProjectionOptionsStep<?,E>,E>
The initial and final step in an "entity" projection definition, where optional parameters can be set.
|
interface |
EntityReferenceProjectionOptionsStep<S extends EntityReferenceProjectionOptionsStep<?,R>,R>
The initial and final step in an "entity reference" projection definition, where optional parameters can be set.
|
interface |
FieldProjectionOptionsStep<S extends FieldProjectionOptionsStep<?,T>,T>
The initial and final step in a "field" projection definition, where optional parameters can be set.
|
interface |
ScoreProjectionOptionsStep<S extends ScoreProjectionOptionsStep<?>>
The initial and final step in a "score" projection definition, where optional parameters can be set.
|
| Modifier and Type | Method and Description |
|---|---|
ProjectionFinalStep<P> |
SearchProjectionFactoryExtensionIfSupportedMoreStep.orElse(Function<SearchProjectionFactory<R,E>,? extends ProjectionFinalStep<P>> projectionContributor)
If no extension passed to
SearchProjectionFactoryExtensionIfSupportedStep.ifSupported(SearchProjectionFactoryExtension, Function)
was supported so far, apply the given function to the current (non-extended) SearchProjectionFactory;
otherwise return the projection created in the first succeeding ifSupported call. |
ProjectionFinalStep<P> |
SearchProjectionFactoryExtensionIfSupportedMoreStep.orElseFail()
If no extension passed to
SearchProjectionFactoryExtensionIfSupportedStep.ifSupported(SearchProjectionFactoryExtension, Function)
was supported so far, throw an exception;
otherwise return the projection created in the first succeeding ifSupported call. |
ProjectionFinalStep<Double> |
DistanceToFieldProjectionOptionsStep.unit(DistanceUnit unit)
Defines the unit of the computed distance (default is meters).
|
| Modifier and Type | Method and Description |
|---|---|
default <P1,P2,T> CompositeProjectionOptionsStep<?,T> |
SearchProjectionFactory.composite(BiFunction<P1,P2,T> transformer,
ProjectionFinalStep<P1> dslFinalStep1,
ProjectionFinalStep<P2> dslFinalStep2)
Create a projection that will compose a custom object based on two almost-built projections.
|
default <P1,P2,T> CompositeProjectionOptionsStep<?,T> |
SearchProjectionFactory.composite(BiFunction<P1,P2,T> transformer,
ProjectionFinalStep<P1> dslFinalStep1,
ProjectionFinalStep<P2> dslFinalStep2)
Create a projection that will compose a custom object based on two almost-built projections.
|
default <T> CompositeProjectionOptionsStep<?,T> |
SearchProjectionFactory.composite(Function<List<?>,T> transformer,
ProjectionFinalStep<?>... dslFinalSteps)
Create a projection that will compose a custom object based on the given almost-built projections.
|
default <P,T> CompositeProjectionOptionsStep<?,T> |
SearchProjectionFactory.composite(Function<P,T> transformer,
ProjectionFinalStep<P> dslFinalStep)
Create a projection that will compose a custom object based on one almost-built projection.
|
default CompositeProjectionOptionsStep<?,List<?>> |
SearchProjectionFactory.composite(ProjectionFinalStep<?>... dslFinalSteps)
Create a projection that will compose a
List based on the given almost-built projections. |
default <P1,P2,P3,T> |
SearchProjectionFactory.composite(TriFunction<P1,P2,P3,T> transformer,
ProjectionFinalStep<P1> dslFinalStep1,
ProjectionFinalStep<P2> dslFinalStep2,
ProjectionFinalStep<P3> dslFinalStep3)
Create a projection that will compose a custom object based on three almost-built projections.
|
default <P1,P2,P3,T> |
SearchProjectionFactory.composite(TriFunction<P1,P2,P3,T> transformer,
ProjectionFinalStep<P1> dslFinalStep1,
ProjectionFinalStep<P2> dslFinalStep2,
ProjectionFinalStep<P3> dslFinalStep3)
Create a projection that will compose a custom object based on three almost-built projections.
|
default <P1,P2,P3,T> |
SearchProjectionFactory.composite(TriFunction<P1,P2,P3,T> transformer,
ProjectionFinalStep<P1> dslFinalStep1,
ProjectionFinalStep<P2> dslFinalStep2,
ProjectionFinalStep<P3> dslFinalStep3)
Create a projection that will compose a custom object based on three almost-built projections.
|
| Modifier and Type | Method and Description |
|---|---|
<T> SearchProjectionFactoryExtensionIfSupportedMoreStep<P,R,E> |
SearchProjectionFactoryExtensionIfSupportedStep.ifSupported(SearchProjectionFactoryExtension<T,R,E> extension,
Function<T,? extends ProjectionFinalStep<P>> projectionContributor)
If the given extension is supported, and none of the previous extensions passed to
SearchProjectionFactoryExtensionIfSupportedStep.ifSupported(SearchProjectionFactoryExtension, Function)
was supported, extend the current factory with this extension,
apply the given function to the extended factory, and store the resulting projection for later retrieval. |
ProjectionFinalStep<P> |
SearchProjectionFactoryExtensionIfSupportedMoreStep.orElse(Function<SearchProjectionFactory<R,E>,? extends ProjectionFinalStep<P>> projectionContributor)
If no extension passed to
SearchProjectionFactoryExtensionIfSupportedStep.ifSupported(SearchProjectionFactoryExtension, Function)
was supported so far, apply the given function to the current (non-extended) SearchProjectionFactory;
otherwise return the projection created in the first succeeding ifSupported call. |
| Modifier and Type | Method and Description |
|---|---|
<P> SearchQueryPredicateStep<?,P,?> |
SearchQueryHitTypeStep.asProjection(Function<? super PJF,? extends ProjectionFinalStep<P>> projectionContributor)
Define the query results as one projection for each matching document.
|
| Modifier and Type | Method and Description |
|---|---|
<P> SearchQueryPredicateStep<?,P,?> |
AbstractDelegatingSearchQueryHitTypeStep.asProjection(Function<? super SearchProjectionFactory<R,E>,? extends ProjectionFinalStep<P>> projectionContributor) |
Copyright © 2006-2019 Red Hat, Inc. and others. Licensed under the GNU Lesser General Public License (LGPL), version 2.1 or later.