use of annis.sqlgen.model.PointingRelation in project ANNIS by korpling.
the class ComponentSearchRelationNormalizer method createJoinMap.
private Multimap<QueryNode, Join> createJoinMap(List<QueryNode> nodes) {
Multimap<QueryNode, Join> result = HashMultimap.create();
for (QueryNode n : nodes) {
for (Join j : n.getOutgoingJoins()) {
if (j instanceof Dominance || j instanceof PointingRelation) {
if (j.getTarget() != null) {
result.put(n, j);
result.put(j.getTarget(), j);
}
}
}
}
return result;
}
use of annis.sqlgen.model.PointingRelation in project ANNIS by korpling.
the class JoinListener method enterDirectPointing.
@Override
public void enterDirectPointing(AqlParser.DirectPointingContext ctx) {
QueryNode left = relationChain.get(relationIdx);
QueryNode right = relationChain.get(relationIdx + 1);
String label = getLayerName(ctx.POINTING(), 2);
Join j = new PointingRelation(right, label, 1);
if (ctx.anno != null) {
LinkedList<QueryAnnotation> annotations = fromRelationAnnotation(ctx.anno);
for (QueryAnnotation a : annotations) {
j.addEdgeAnnotation(a);
}
}
left.addOutgoingJoin(addParsedLocation(ctx, j));
}
Aggregations