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

Examples of com.hp.hpl.jena.sparql.engine.iterator.QueryIterPlainWrapper


      for (BindingMaker bindingMaker: bindingMakers) {
        Binding t = bindingMaker.makeBinding(ResultRow.NO_ATTRIBUTES);
        if (t == null) continue;
        bindingList.add(t);
      }
      return new QueryIterPlainWrapper(bindingList.iterator(), execCxt);       
    }
    return new QueryIterTableSQL(relation, bindingMakers, execCxt);
  }
View Full Code Here


            while ( qIter.hasNext() )
                bindings.add(qIter.nextBinding()) ;
            qIter.close();
           
            // QueryIterPlainWrapper is just to make it ia QuyerIterator again.
            return new GraphIterator(triple, new QueryIterPlainWrapper(bindings.iterator())) ;
        }
    }
View Full Code Here

        QueryIterator qIter = new QueryIterSQL(rs, binding, execCxt) ;
        List<Binding> results = new ArrayList<Binding>() ;
        for ( ; qIter.hasNext() ; )
            results.add(qIter.nextBinding()) ;
        qIter.close() ;
        return new QueryIterPlainWrapper(results.iterator(), execCxt) ;
    }
View Full Code Here

                              ExecutionContext execCxt)
    {
        List<Binding> bindings = new ArrayList<Binding>() ;
        for ( ; input.hasNext() ; )
            bindings.add(input.nextBinding()) ;
        return new QueryIterPlainWrapper(bindings.iterator(), execCxt) ;
    }
View Full Code Here

        for (; iter.hasNext();)
        {
            Node n = iter.next() ;
            results.add(BindingFactory.binding(binding, var, n)) ;
        }
        return new QueryIterPlainWrapper(results.iterator()) ;
    }
View Full Code Here

            Item itemRow = list.get(i) ;
            Binding b = BuilderBinding.build(itemRow) ;
            bindings.add(b) ;
        }
       
        QueryIterator qIter = new QueryIterPlainWrapper(bindings.listIterator()) ;
        return new ResultSetStream(Var.varNames(vars), null, qIter) ;
    }
View Full Code Here

        {
            Binding b = rs.nextBinding() ;
            sorted.add(b) ;
        }
           
        qIter = new QueryIterPlainWrapper(sorted.iterator()) ;
        resultVars = rs.getResultVars() ;
        //resultSet = new ResultSetStream(rs.getResultVars(), null, qIter) ;
    }
View Full Code Here

            Binding b = BindingFactory.binding(binding, memberVar, n) ;
            bindings.add(b) ;
        }
       
        // Turn into a QueryIterator of extra bindings.
        return new QueryIterPlainWrapper(bindings.iterator(), execCxt) ;
    }
View Full Code Here

            Node gn = iter.next();
            Binding b = BindingFactory.binding(Var.alloc(graphNode), gn) ;
            list.add(b) ;
        }

        QueryIterator qIter = new QueryIterPlainWrapper(list.iterator(), evaluator.getExecContext()) ;
        return TableFactory.create(qIter) ;

    }
View Full Code Here

        if ( out.size() == 0 && includeOnNoMatch )
            out.add(bindingLeft) ;
       
        if ( out.size() == 0 )
            return new QueryIterNullIterator(execContext) ;
        return new QueryIterPlainWrapper(out.iterator(), execContext) ;
    }
View Full Code Here

TOP

Related Classes of com.hp.hpl.jena.sparql.engine.iterator.QueryIterPlainWrapper

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.