Package com.hp.hpl.jena.sparql.engine

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


    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

        {
            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

    }

    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

        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

        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

       
        // 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

        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

        return qIter ;
    }
   
    protected QueryIterator execute(OpGroup opGroup, QueryIterator input)
    {
        QueryIterator qIter = executeOp(opGroup.getSubOp(), input) ;
        qIter = new QueryIterGroup(qIter, opGroup.getGroupVars(), opGroup.getAggregators(), execCxt) ;
        return qIter ;
    }
View Full Code Here

        return qIter ;
    }
   
    protected QueryIterator execute(OpDistinct opDistinct, QueryIterator input)
    {
        QueryIterator qIter = executeOp(opDistinct.getSubOp(), input) ;
        qIter = new QueryIterDistinct(qIter, execCxt) ;
        return qIter ;
    }
View Full Code Here

TOP

Related Classes of com.hp.hpl.jena.sparql.engine.QueryIterator

Copyright © 2018 www.massapicom. 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.