Modifier and Type | Method and Description |
---|---|
SearchProjectionTerminalContext<String> |
ElasticsearchSearchProjectionFactoryContext.explanation()
Project to a string representing a JSON object describing the score computation for the hit.
|
SearchProjectionTerminalContext<String> |
ElasticsearchSearchProjectionFactoryContext.source()
Project to a string representing the JSON document as stored in Elasticsearch.
|
Modifier and Type | Method and Description |
---|---|
SearchProjectionTerminalContext<Document> |
LuceneSearchProjectionFactoryContext.document()
Project to a Lucene
Document containing all the stored fields. |
SearchProjectionTerminalContext<Explanation> |
LuceneSearchProjectionFactoryContext.explanation()
Project to a Lucene
Explanation describing the score computation for the hit. |
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 |
FieldProjectionContext<T>
The context used when starting to define a field projection.
|
interface |
ObjectProjectionContext<O>
The context used when starting to define an object projection.
|
interface |
ReferenceProjectionContext<R>
The context used when starting to define a reference 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,O>,? 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,O> |
SearchProjectionFactoryExtensionContext.ifSupported(SearchProjectionFactoryContextExtension<T,R,O> 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,O>,? 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 |
---|---|
<T> SearchQueryResultContext<? extends FullTextQuery<T>> |
FullTextQueryResultDefinitionContext.asProjection(Function<? super SearchProjectionFactoryContext<PojoReference,O>,? extends SearchProjectionTerminalContext<T>> projectionContributor) |
Modifier and Type | Method and Description |
---|---|
<T> SearchQueryResultContext<? extends FullTextQuery<T>> |
FullTextQueryResultDefinitionContext.asProjection(Function<? super SearchProjectionFactoryContext<PojoReference,O>,? extends SearchProjectionTerminalContext<T>> projectionContributor) |
Copyright © 2006-2019 Red Hat, Inc. and others. Licensed under the GNU Lesser General Public License (LGPL), version 2.1 or later.