コード例 #1
0
ファイル: OpRewriter.java プロジェクト: apache/jena
 /** Rewrite sequence elements */
 @Override
 public void visit(final OpDisjunction opDisjunction) {
   if (LOG.isDebugEnabled()) {
     LOG.debug("Starting visiting OpDisjunction");
   }
   addOp(rewriteOpN(opDisjunction, OpDisjunction.create()));
 }
コード例 #2
0
  public void visit(OpDisjunction opDisjunction) {
    // Evaluation is as a concatentation of alternatives
    Table table = TableFactory.createEmpty();

    for (Iterator<Op> iter = opDisjunction.iterator(); iter.hasNext(); ) {
      Op op = iter.next();
      Table eltTable = eval(op);
      table = evaluator.union(table, eltTable);
    }
    push(table);
  }