use of annis.sqlgen.model.NonBindingJoin in project ANNIS by korpling.
the class SemanticValidator method calculateConnected.
private Multimap<Long, QueryNode> calculateConnected(List<QueryNode> nodes) {
Multimap<Long, QueryNode> result = HashMultimap.create();
for (QueryNode n : nodes) {
for (Join j : n.getOutgoingJoins()) {
if (j.getTarget() != null && !(j instanceof NonBindingJoin)) {
long left = n.getId();
long right = j.getTarget().getId();
result.put(left, j.getTarget());
result.put(right, n);
}
}
}
return result;
}
Aggregations