Search in sources :

Example 1 with NonBindingJoin

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;
}
Also used : QueryNode(annis.model.QueryNode) NonBindingJoin(annis.sqlgen.model.NonBindingJoin) Join(annis.model.Join) NonBindingJoin(annis.sqlgen.model.NonBindingJoin)

Aggregations

Join (annis.model.Join)1 QueryNode (annis.model.QueryNode)1 NonBindingJoin (annis.sqlgen.model.NonBindingJoin)1