com.hp.hpl.jena.sparql.engine.iterator
Class QueryIterConvert

java.lang.Object
  extended by com.hp.hpl.jena.sparql.util.PrintSerializableBase
      extended by com.hp.hpl.jena.sparql.engine.iterator.QueryIteratorBase
          extended by com.hp.hpl.jena.sparql.engine.iterator.QueryIter
              extended by com.hp.hpl.jena.sparql.engine.iterator.QueryIter1
                  extended by com.hp.hpl.jena.sparql.engine.iterator.QueryIterConvert
All Implemented Interfaces:
QueryIterator, PrintSerializable, Iterator<Binding>, Printable, Closeable
Direct Known Subclasses:
QueryIterCommonParent, QueryIterDistinguishedVars, QueryIterProject

public class QueryIterConvert
extends QueryIter1

Iterator over another QueryIterator, applying a converter function to each object that is returned by .next()


Nested Class Summary
static interface QueryIterConvert.Converter
           
 
Field Summary
 
Fields inherited from class com.hp.hpl.jena.sparql.engine.iterator.QueryIteratorBase
traceIterators
 
Constructor Summary
QueryIterConvert(QueryIterator iter, QueryIterConvert.Converter c, ExecutionContext context)
           
 
Method Summary
 boolean hasNextBinding()
          Implement this, not hasNext()
 Binding moveToNextBinding()
          Implement this, not next() or nextBinding() Returning null is turned into NoSuchElementException Does not need to call hasNext (can presume it is true)
 
Methods inherited from class com.hp.hpl.jena.sparql.engine.iterator.QueryIter1
output
 
Methods inherited from class com.hp.hpl.jena.sparql.engine.iterator.QueryIter
close, getExecContext, getIteratorNumber, makeTracked, materialize
 
Methods inherited from class com.hp.hpl.jena.sparql.engine.iterator.QueryIteratorBase
abort, cancel, cancelAllowContinue, debug, hasNext, next, nextBinding, remove
 
Methods inherited from class com.hp.hpl.jena.sparql.util.PrintSerializableBase
output, toString, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.hp.hpl.jena.sparql.util.PrintSerializable
toString
 
Methods inherited from interface org.openjena.atlas.io.Printable
output
 

Constructor Detail

QueryIterConvert

public QueryIterConvert(QueryIterator iter,
                        QueryIterConvert.Converter c,
                        ExecutionContext context)
Method Detail

hasNextBinding

public boolean hasNextBinding()
Description copied from class: QueryIteratorBase
Implement this, not hasNext()


moveToNextBinding

public Binding moveToNextBinding()
Description copied from class: QueryIteratorBase
Implement this, not next() or nextBinding() Returning null is turned into NoSuchElementException Does not need to call hasNext (can presume it is true)



Licenced under the Apache License, Version 2.0