Examples of QueryIterator


Examples of com.hp.hpl.jena.sparql.engine.QueryIterator

    protected QueryIterator execute(OpMinus opMinus, QueryIterator input)
    {
      Op lhsOp = opMinus.getLeft();
      Op rhsOp = opMinus.getRight();
     
        QueryIterator left = executeOp(lhsOp, input) ;
        QueryIterator right = executeOp(rhsOp, root()) ;

        Set<Var> commonVars = OpVars.patternVars(lhsOp) ;
        commonVars.retainAll(OpVars.patternVars(rhsOp)) ;

        return new QueryIterMinus(left, right, commonVars, execCxt) ;
View Full Code Here

Examples of com.hp.hpl.jena.sparql.engine.QueryIterator

        return new QueryIterMinus(left, right, commonVars, execCxt) ;
    }
   
    protected QueryIterator execute(OpDisjunction opDisjunction, QueryIterator input)
    {
        QueryIterator cIter = new QueryIterUnion(input, opDisjunction.getElements(), execCxt) ;
        return cIter ;
    }
View Full Code Here

Examples of com.hp.hpl.jena.sparql.engine.QueryIterator

    }

    protected QueryIterator execute(OpUnion opUnion, QueryIterator input)
    {
        List<Op> x = flattenUnion(opUnion) ;
        QueryIterator cIter = new QueryIterUnion(input, x, execCxt) ;
        return cIter ;
    }
View Full Code Here

Examples of com.hp.hpl.jena.sparql.engine.QueryIterator

    protected QueryIterator execute(OpFilter opFilter, QueryIterator input)
    {
        ExprList exprs = opFilter.getExprs() ;
       
        Op base = opFilter.getSubOp() ;
        QueryIterator qIter = executeOp(base, input) ;

        for ( Expr expr : exprs )
            qIter = new QueryIterFilterExpr(qIter, expr, execCxt) ;
        return qIter ;
    }
View Full Code Here

Examples of com.hp.hpl.jena.sparql.engine.QueryIterator

        {
            input.close() ;
            return opTable.getTable().iterator(execCxt) ;
        }
        //throw new ARQNotImplemented("Not identity table") ;
        QueryIterator qIterT = opTable.getTable().iterator(execCxt) ;
        //QueryIterator qIterT = root() ;
        QueryIterator qIter = new QueryIterJoin(input, qIterT, execCxt) ;
        return qIter ;
    }
View Full Code Here

Examples of com.hp.hpl.jena.sparql.engine.QueryIterator

    }

    protected QueryIterator execute(OpExt opExt, QueryIterator input)
    {
        try {
            QueryIterator qIter = opExt.eval(input, execCxt) ;
            if ( qIter != null )
                return qIter ;
        } catch (UnsupportedOperationException ex) { }
        // null or UnsupportedOperationException
        throw new QueryExecException("Encountered unsupported OpExt: "+opExt.getName()) ;
View Full Code Here

Examples of com.hp.hpl.jena.sparql.engine.QueryIterator

        return executeOp(opList.getSubOp(), input) ;
    }
   
    protected QueryIterator execute(OpOrder opOrder, QueryIterator input)
    {
        QueryIterator qIter = executeOp(opOrder.getSubOp(), input) ;
        qIter = new QueryIterSort(qIter, opOrder.getConditions(), execCxt) ;
        return qIter ;
    }
View Full Code Here

Examples of com.hp.hpl.jena.sparql.engine.QueryIterator

        return qIter ;
    }

    protected QueryIterator execute(OpTopN opTop, QueryIterator input)
    {
        QueryIterator qIter = null ;
        // We could also do (reduced) here as well.
        // but it's detected in TrabsformTopN and turned into (distinct)
        // there so that code catches that already.
        // We leave this to do the strict case of (top N (distinct ...))
        if ( opTop.getSubOp() instanceof OpDistinct ) {
View Full Code Here

Examples of com.hp.hpl.jena.sparql.engine.QueryIterator

       
        // More intelligent QueryIterProject needed.
       
        if ( input instanceof QueryIterRoot )
        {
            QueryIterator  qIter = executeOp(opProject.getSubOp(), input) ;
            qIter = new QueryIterProject(qIter, opProject.getVars(), execCxt) ;
            return qIter ;
        }
        // Nested projected : need to ensure the input is seen.
        // ROLL into QueryIterProject
        QueryIterator qIter = new QueryIterProject2(opProject, input, this, execCxt) ;
        return qIter ;
    }
View Full Code Here

Examples of com.hp.hpl.jena.sparql.engine.QueryIterator

        return qIter ;
    }

    protected QueryIterator execute(OpSlice opSlice, QueryIterator input)
    {
        QueryIterator qIter = executeOp(opSlice.getSubOp(), input) ;
        qIter = new QueryIterSlice(qIter, opSlice.getStart(), opSlice.getLength(), execCxt) ;
        return qIter ;
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.