| Modifier and Type | Interface and Description |
|---|---|
interface |
CompositeProjectionContext<T>
The context used when starting to define a composite projection.
|
interface |
DistanceToFieldProjectionContext
The context used when starting to define a distance field projection.
|
interface |
DocumentReferenceProjectionContext
The context used when starting to define a document reference projection.
|
interface |
EntityProjectionContext<E>
The context used when starting to define an entity projection.
|
interface |
EntityReferenceProjectionContext<R>
The context used when starting to define an entity reference projection.
|
interface |
FieldProjectionContext<T>
The context used when starting to define a field projection.
|
interface |
ScoreProjectionContext
The context used when starting to define a score projection.
|
| Modifier and Type | Method and Description |
|---|---|
SearchProjectionTerminalContext<P> |
SearchProjectionFactoryExtensionContext.orElse(Function<SearchProjectionFactoryContext<R,E>,? extends SearchProjectionTerminalContext<P>> projectionContributor)
If no extension passed to
SearchProjectionFactoryExtensionContext.ifSupported(SearchProjectionFactoryContextExtension, Function)
was supported so far, apply the given function to the current (non-extended) SearchProjectionFactoryContext;
otherwise return the projection created in the first succeeding ifSupported call. |
SearchProjectionTerminalContext<P> |
SearchProjectionFactoryExtensionContext.orElseFail()
If no extension passed to
SearchProjectionFactoryExtensionContext.ifSupported(SearchProjectionFactoryContextExtension, Function)
was supported so far, throw an exception;
otherwise return the projection created in the first succeeding ifSupported call. |
SearchProjectionTerminalContext<Double> |
DistanceToFieldProjectionContext.unit(DistanceUnit unit)
Defines the unit of the computed distance (default is meters).
|
| Modifier and Type | Method and Description |
|---|---|
default <P1,P2,T> CompositeProjectionContext<T> |
SearchProjectionFactoryContext.composite(BiFunction<P1,P2,T> transformer,
SearchProjectionTerminalContext<P1> terminalContext1,
SearchProjectionTerminalContext<P2> terminalContext2)
Create a projection that will compose a custom object based on two almost-built projections.
|
default <P1,P2,T> CompositeProjectionContext<T> |
SearchProjectionFactoryContext.composite(BiFunction<P1,P2,T> transformer,
SearchProjectionTerminalContext<P1> terminalContext1,
SearchProjectionTerminalContext<P2> terminalContext2)
Create a projection that will compose a custom object based on two almost-built projections.
|
default <T> CompositeProjectionContext<T> |
SearchProjectionFactoryContext.composite(Function<List<?>,T> transformer,
SearchProjectionTerminalContext<?>... terminalContexts)
Create a projection that will compose a custom object based on the given almost-built projections.
|
default <P,T> CompositeProjectionContext<T> |
SearchProjectionFactoryContext.composite(Function<P,T> transformer,
SearchProjectionTerminalContext<P> terminalContext)
Create a projection that will compose a custom object based on one almost-built projection.
|
default CompositeProjectionContext<List<?>> |
SearchProjectionFactoryContext.composite(SearchProjectionTerminalContext<?>... terminalContexts)
Create a projection that will compose a
List based on the given almost-built projections. |
default <P1,P2,P3,T> |
SearchProjectionFactoryContext.composite(TriFunction<P1,P2,P3,T> transformer,
SearchProjectionTerminalContext<P1> terminalContext1,
SearchProjectionTerminalContext<P2> terminalContext2,
SearchProjectionTerminalContext<P3> terminalContext3)
Create a projection that will compose a custom object based on three almost-built projections.
|
default <P1,P2,P3,T> |
SearchProjectionFactoryContext.composite(TriFunction<P1,P2,P3,T> transformer,
SearchProjectionTerminalContext<P1> terminalContext1,
SearchProjectionTerminalContext<P2> terminalContext2,
SearchProjectionTerminalContext<P3> terminalContext3)
Create a projection that will compose a custom object based on three almost-built projections.
|
default <P1,P2,P3,T> |
SearchProjectionFactoryContext.composite(TriFunction<P1,P2,P3,T> transformer,
SearchProjectionTerminalContext<P1> terminalContext1,
SearchProjectionTerminalContext<P2> terminalContext2,
SearchProjectionTerminalContext<P3> terminalContext3)
Create a projection that will compose a custom object based on three almost-built projections.
|
| Modifier and Type | Method and Description |
|---|---|
<T> SearchProjectionFactoryExtensionContext<P,R,E> |
SearchProjectionFactoryExtensionContext.ifSupported(SearchProjectionFactoryContextExtension<T,R,E> extension,
Function<T,? extends SearchProjectionTerminalContext<P>> projectionContributor)
If the given extension is supported, and none of the previous extensions passed to
SearchProjectionFactoryExtensionContext.ifSupported(SearchProjectionFactoryContextExtension, Function)
was supported, extend the current context with this extension,
apply the given function to the extended context, and store the resulting projection for later retrieval. |
SearchProjectionTerminalContext<P> |
SearchProjectionFactoryExtensionContext.orElse(Function<SearchProjectionFactoryContext<R,E>,? extends SearchProjectionTerminalContext<P>> projectionContributor)
If no extension passed to
SearchProjectionFactoryExtensionContext.ifSupported(SearchProjectionFactoryContextExtension, Function)
was supported so far, apply the given function to the current (non-extended) SearchProjectionFactoryContext;
otherwise return the projection created in the first succeeding ifSupported call. |
| Modifier and Type | Method and Description |
|---|---|
<P> SearchQueryResultContext<?,P,?> |
SearchQueryResultDefinitionContext.asProjection(Function<? super PJC,? extends SearchProjectionTerminalContext<P>> projectionContributor)
Define the query results as one projection for each matching document.
|
| Modifier and Type | Method and Description |
|---|---|
<P> SearchQueryResultContext<?,P,?> |
AbstractDelegatingSearchQueryResultDefinitionContext.asProjection(Function<? super SearchProjectionFactoryContext<R,E>,? extends SearchProjectionTerminalContext<P>> projectionContributor) |
Copyright © 2006-2019 Red Hat, Inc. and others. Licensed under the GNU Lesser General Public License (LGPL), version 2.1 or later.