Class ResultProviderRequestor
java.lang.Object
tools.refinery.interpreter.matchers.backend.ResultProviderRequestor
Uniform way of requesting result providers for pattern calls within queries.
Intended users are query backends, for calling other backends to deliver results of dependee queries.
- Since:
- 2.1
-
Constructor Summary
ConstructorsConstructorDescriptionResultProviderRequestor(IQueryBackend callerBackend, IQueryResultProviderAccess resultProviderAccess, IQueryBackendHintProvider hintProvider, ICallDelegationStrategy delegationStrategy, QueryEvaluationHint callerHint, QueryEvaluationHint universalOverride) -
Method Summary
Modifier and TypeMethodDescriptionrequestResultProvider(IQueryReference call, QueryEvaluationHint spotOverride)
-
Constructor Details
-
ResultProviderRequestor
public ResultProviderRequestor(IQueryBackend callerBackend, IQueryResultProviderAccess resultProviderAccess, IQueryBackendHintProvider hintProvider, ICallDelegationStrategy delegationStrategy, QueryEvaluationHint callerHint, QueryEvaluationHint universalOverride) - Parameters:
callerBackend- the actual backend evaluating the calling pattern.resultProviderAccess-hintProvider-delegationStrategy-callerHint- a hint under which the calling pattern is evaluated,universalOverride- if non-null, overrides the hint with extra options after theICallDelegationStrategy
-
-
Method Details
-
requestResultProvider
public IQueryResultProvider requestResultProvider(IQueryReference call, QueryEvaluationHint spotOverride) - Parameters:
call- aPConstraintin a query that calls another query.spotOverride- if non-null, overrides the hint with extra options after theICallDelegationStrategyand the universal override specified in the constructor- Returns:
- the obtained result provider
-