Class FederationEvaluationStrategyFactory
java.lang.Object
org.eclipse.rdf4j.query.algebra.evaluation.impl.AbstractEvaluationStrategyFactory
org.eclipse.rdf4j.query.algebra.evaluation.impl.StrictEvaluationStrategyFactory
org.eclipse.rdf4j.federated.evaluation.FederationEvaluationStrategyFactory
- All Implemented Interfaces:
EvaluationStrategyFactory
,FederatedServiceResolverClient
Factory class for retrieving the
FederationEvalStrategy
to be used.
Default strategies:
- local federation:
SailFederationEvalStrategy
- endpoint federation:
SparqlFederationEvalStrategy
- hybrid federation:
SparqlFederationEvalStrategy
Customized strategies can be supplied to the federation using
FedXFactory.withFederationEvaluationStrategyFactory(FederationEvaluationStrategyFactory)
- Author:
- Andreas Schwarte
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncreateEvaluationStrategy
(Dataset dataset, TripleSource tripleSource, EvaluationStatistics evaluationStatistics) Create theFederationEvalStrategy
to be used.void
setFederationContext
(FederationContext federationContext) void
setFederationType
(FederationManager.FederationType federationType) Methods inherited from class org.eclipse.rdf4j.query.algebra.evaluation.impl.StrictEvaluationStrategyFactory
getFederatedServiceResolver, setFederatedServiceResolver
Methods inherited from class org.eclipse.rdf4j.query.algebra.evaluation.impl.AbstractEvaluationStrategyFactory
getOptimizerPipeline, getQuerySolutionCacheThreshold, isTrackResultSize, setOptimizerPipeline, setQuerySolutionCacheThreshold, setTrackResultSize
-
Constructor Details
-
FederationEvaluationStrategyFactory
public FederationEvaluationStrategyFactory()
-
-
Method Details
-
getFederationType
-
setFederationType
-
getFederationContext
-
setFederationContext
-
createEvaluationStrategy
public FederationEvalStrategy createEvaluationStrategy(Dataset dataset, TripleSource tripleSource, EvaluationStatistics evaluationStatistics) Create theFederationEvalStrategy
to be used. Note: all parameters may benull
- Specified by:
createEvaluationStrategy
in interfaceEvaluationStrategyFactory
- Overrides:
createEvaluationStrategy
in classStrictEvaluationStrategyFactory
- Parameters:
dataset
- the DataSet to evaluate queries against.tripleSource
- the TripleSource to evaluate queries against.evaluationStatistics
- the store evaluation statistics to use for query optimization.- Returns:
- an EvaluationStrategy.
-