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 Link icon

  • Constructor Details Link icon

  • Method Details Link icon

    • doSourceSelection Link icon

      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 Link icon

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

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