本文整理了Java中org.eclipse.rdf4j.query.algebra.Union.visit()
方法的一些代码示例,展示了Union.visit()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Union.visit()
方法的具体详情如下:
包路径:org.eclipse.rdf4j.query.algebra.Union
类名称:Union
方法名:visit
暂无
代码示例来源:origin: org.eclipse.rdf4j/rdf4j-queryalgebra-evaluation
@Override
public void meet(Union union) {
super.meet(union);
TupleExpr leftArg = union.getLeftArg();
TupleExpr rightArg = union.getRightArg();
if (leftArg instanceof Join && rightArg instanceof Join) {
Join leftJoinArg = (Join)leftArg;
Join rightJoin = (Join)rightArg;
if (leftJoinArg.getLeftArg().equals(rightJoin.getLeftArg())) {
// factor out the left-most join argument
Join newJoin = new Join();
union.replaceWith(newJoin);
newJoin.setLeftArg(leftJoinArg.getLeftArg());
newJoin.setRightArg(union);
union.setLeftArg(leftJoinArg.getRightArg());
union.setRightArg(rightJoin.getRightArg());
union.visit(this);
}
}
}
}
代码示例来源:origin: de.tudarmstadt.ukp.inception.rdf4j/rdf4j-queryalgebra-evaluation
@Override
public void meet(Union union) {
super.meet(union);
TupleExpr leftArg = union.getLeftArg();
TupleExpr rightArg = union.getRightArg();
if (leftArg instanceof Join && rightArg instanceof Join) {
Join leftJoinArg = (Join)leftArg;
Join rightJoin = (Join)rightArg;
if (leftJoinArg.getLeftArg().equals(rightJoin.getLeftArg())) {
// factor out the left-most join argument
Join newJoin = new Join();
union.replaceWith(newJoin);
newJoin.setLeftArg(leftJoinArg.getLeftArg());
newJoin.setRightArg(union);
union.setLeftArg(leftJoinArg.getRightArg());
union.setRightArg(rightJoin.getRightArg());
union.visit(this);
}
}
}
}
代码示例来源:origin: de.tudarmstadt.ukp.inception.rdf4j/rdf4j-queryalgebra-evaluation
Union newUnion = new Union(leftJoin, rightJoin);
join.replaceWith(newUnion);
newUnion.visit(this);
Union newUnion = new Union(leftJoin, rightJoin);
join.replaceWith(newUnion);
newUnion.visit(this);
代码示例来源:origin: org.eclipse.rdf4j/rdf4j-queryalgebra-evaluation
Union newUnion = new Union(leftJoin, rightJoin);
join.replaceWith(newUnion);
newUnion.visit(this);
Union newUnion = new Union(leftJoin, rightJoin);
join.replaceWith(newUnion);
newUnion.visit(this);
内容来源于网络,如有侵权,请联系作者删除!