public class SourceSelection extends Object
Modifier and Type | Class and Description |
---|---|
protected class |
SourceSelection.CheckTaskPair |
protected static class |
SourceSelection.ParallelCheckTask
Task for sending an ASK request to the endpoints (for source selection)
|
protected static class |
SourceSelection.SourceSelectionExecutorWithLatch |
Modifier and Type | Field and Description |
---|---|
protected SourceSelectionCache |
cache |
protected List<Endpoint> |
endpoints |
protected QueryInfo |
queryInfo |
protected Map<StatementPattern,List<StatementSource>> |
stmtToSources
Map statements to their sources.
|
Constructor and Description |
---|
SourceSelection(List<Endpoint> endpoints,
SourceSelectionCache cache,
QueryInfo queryInfo) |
Modifier and Type | Method and Description |
---|---|
protected void |
addSource(StatementPattern stmt,
StatementSource source)
Add a source to the given statement in the map (synchronized through map)
|
void |
doSourceSelection(List<StatementPattern> stmts)
Perform source selection for the provided statements using cache or remote ASK queries.
|
Set<Endpoint> |
getRelevantSources()
Retrieve a set of relevant sources for this query.
|
protected final SourceSelectionCache cache
protected final QueryInfo queryInfo
protected Map<StatementPattern,List<StatementSource>> stmtToSources
public SourceSelection(List<Endpoint> endpoints, SourceSelectionCache cache, QueryInfo queryInfo)
public void doSourceSelection(List<StatementPattern> stmts)
stmts
- public Set<Endpoint> getRelevantSources()
protected void addSource(StatementPattern stmt, StatementSource source)
stmt
- source
- Copyright © 2015-2022 Eclipse Foundation. All Rights Reserved.