T - The type of extended steps in the search query definition DSL. Should generally extend
SearchQuerySelectStep.R - The reference type.E - The entity type.LOS - The type of the initial step of the loading options definition DSL.public interface SearchQueryDslExtension<T,R,E,LOS>
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(SearchQuerySelectStep<?,R,E,LOS,?,?> original,
IndexScope<?> indexScope,
BackendSessionContext sessionContext,
LoadingContextBuilder<R,E,LOS> loadingContextBuilder)
Attempt to extend a given DSL step, returning an empty
Optional in case of failure. |
Optional<T> extendOptional(SearchQuerySelectStep<?,R,E,LOS,?,?> original, IndexScope<?> indexScope, BackendSessionContext sessionContext, LoadingContextBuilder<R,E,LOS> loadingContextBuilder)
Optional in case of failure.
WARNING: this method is not API, see comments at the type level.
original - The original, non-extended SearchQuerySelectStep.indexScope - An IndexScope.sessionContext - A BackendSessionContext.loadingContextBuilder - A LoadingContextBuilder.T) in case
of success, or an empty optional otherwise.Copyright © 2006-2020 Red Hat, Inc. and others. Licensed under the GNU Lesser General Public License (LGPL), version 2.1 or later.