org.eclipse.rdf4j.query.algebra.Union.visit()方法的使用及代码示例

x33g5p2x  于2022-02-01 转载在 其他  
字(2.0k)|赞(0)|评价(0)|浏览(139)

本文整理了Java中org.eclipse.rdf4j.query.algebra.Union.visit()方法的一些代码示例,展示了Union.visit()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Union.visit()方法的具体详情如下:
包路径:org.eclipse.rdf4j.query.algebra.Union
类名称:Union
方法名:visit

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);

相关文章