use of org.openrdf.query.algebra.BinaryTupleOperator in project incubator-rya by apache.
the class AbstractExternalSetMatcher method updateTupleAndNodes.
protected void updateTupleAndNodes() {
segmentNodeList = segment.getOrderedNodes();
final TupleExprAndNodes tupAndNodes = segment.getQuery();
tuple = tupAndNodes.getTupleExpr();
filters = tupAndNodes.getFilters();
unmatched = new HashSet<>();
final List<QueryModelNode> nodes = tupAndNodes.getNodes();
for (final QueryModelNode q : nodes) {
if (q instanceof UnaryTupleOperator || q instanceof BinaryTupleOperator) {
unmatched.add((TupleExpr) q);
} else if (q instanceof FlattenedOptional) {
final FlattenedOptional opt = (FlattenedOptional) q;
final TupleExpr rightArg = opt.getRightArg();
if (rightArg instanceof UnaryTupleOperator || rightArg instanceof BinaryTupleOperator) {
unmatched.add(rightArg);
}
}
}
}
Aggregations