T - The type of extended search query contexts. Should generally extend
SearchQueryResultDefinitionContext.R - The reference type.
Users should not have to care about this, as the parameter will automatically take the appropriate value when calling
.extension( ElasticsearchExtension.get() .E - The entity type.
Users should not have to care about this, as the parameter will automatically take the appropriate value when callingpublic interface SearchQueryContextExtension<T,R,E>
WARNING: while this type is API, because instances should be manipulated by users,
all of its methods are considered SPIs and therefore should never be called or implemented directly by users.
In short, users are only expected to get instances of this type from an API (SomeExtension.get())
and pass it to another API.
| Modifier and Type | Method and Description |
|---|---|
Optional<T> |
extendOptional(SearchQueryResultDefinitionContext<?,R,E,?,?> original,
IndexScope<?> indexScope,
SessionContextImplementor sessionContext,
LoadingContextBuilder<R,E> loadingContextBuilder)
Attempt to extend a given context, returning an empty
Optional in case of failure. |
Optional<T> extendOptional(SearchQueryResultDefinitionContext<?,R,E,?,?> original, IndexScope<?> indexScope, SessionContextImplementor sessionContext, LoadingContextBuilder<R,E> loadingContextBuilder)
Optional in case of failure.
WARNING: this method is not API, see comments at the type level.
original - The original, non-extended SearchQueryResultContext.indexScope - An IndexScope.sessionContext - A SessionContextImplementor.loadingContextBuilder - A LoadingContextBuilder.T) in case
of success, or an empty optional otherwise.Copyright © 2006-2019 Red Hat, Inc. and others. Licensed under the GNU Lesser General Public License (LGPL), version 2.1 or later.