@FunctionalInterface
public interface ICallDelegationStrategy
A few useful default implementations are included as static fields.
As of 2.1, only suppported by the local search backend, and only if the pattern call is not flattened.
Modifier and Type | Field and Description |
---|---|
static ICallDelegationStrategy |
FULL_BACKEND_ADHESION
Options known for callee are used to override caller options, except the backend selection.
|
static ICallDelegationStrategy |
NO_BACKEND_ADHESION
Options known for callee are used to override caller options, including the backend selection.
|
static ICallDelegationStrategy |
PARTIAL_BACKEND_ADHESION
Options known for callee are used to override caller options, including the backend selection.
|
Modifier and Type | Method and Description |
---|---|
QueryEvaluationHint |
transformHints(IQueryReference call,
QueryEvaluationHint callerHint,
IQueryBackend callerBackend,
IQueryBackendHintProvider calleeHintProvider)
Specifies how hints (including backend preferences) shall propagate through pattern calls.
|
static final ICallDelegationStrategy FULL_BACKEND_ADHESION
static final ICallDelegationStrategy PARTIAL_BACKEND_ADHESION
static final ICallDelegationStrategy NO_BACKEND_ADHESION
QueryEvaluationHint transformHints(IQueryReference call, QueryEvaluationHint callerHint, IQueryBackend callerBackend, IQueryBackendHintProvider calleeHintProvider)
call
- a PConstraint
in a query that calls another query.callerHint
- a hint under which the calling pattern is evaluated,callerBackend
- the actual backend evaluating the calling pattern.calleeHintProvider
- the provider of hints for the called pattern.IQueryResultProvider
for the called pattern via IQueryResultProviderAccess
.