Class SourceSelection

java.lang.Object
org.eclipse.rdf4j.federated.optimizer.SourceSelection

public class SourceSelection extends Object
Perform source selection during optimization
Author:
Andreas Schwarte
  • Field Details

  • Constructor Details

  • Method Details

    • doSourceSelection

      public void doSourceSelection(List<StatementPattern> stmts)
      Perform source selection for the provided statements using cache or remote ASK queries. Remote ASK queries are evaluated in parallel using the concurrency infrastructure of FedX. Note, that this method is blocking until every source is resolved. The statement patterns are replaced by appropriate annotations in this optimization.
      Parameters:
      stmts -
    • getRelevantSources

      public Set<Endpoint> getRelevantSources()
      Retrieve a set of relevant sources for this query.
      Returns:
      the relevant sources
    • addSource

      protected void addSource(StatementPattern stmt, StatementSource source)
      Add a source to the given statement in the map (synchronized through map)
      Parameters:
      stmt -
      source -