Franz Inc, AllegroGraph

com.franz.agraph.jena
Class AGNodeIterator

java.lang.Object
  extended by com.hp.hpl.jena.util.iterator.NiceIterator<com.hp.hpl.jena.graph.Node>
      extended by com.franz.agraph.jena.AGNodeIterator
All Implemented Interfaces:
Closeable, com.hp.hpl.jena.util.iterator.ClosableIterator<com.hp.hpl.jena.graph.Node>, com.hp.hpl.jena.util.iterator.ExtendedIterator<com.hp.hpl.jena.graph.Node>, Iterator<com.hp.hpl.jena.graph.Node>

public class AGNodeIterator
extends com.hp.hpl.jena.util.iterator.NiceIterator<com.hp.hpl.jena.graph.Node>
implements Closeable

A utility class for iterating over Jena Nodes.


Constructor Summary
AGNodeIterator(org.openrdf.query.TupleQueryResult result)
          Constructs an AGNodeIterator from a TupleQueryResult.
 
Method Summary
 void close()
          Releases system resources associated with the object.
 boolean hasNext()
           
 com.hp.hpl.jena.graph.Node next()
           
 
Methods inherited from class com.hp.hpl.jena.util.iterator.NiceIterator
andThen, andThen, asList, asSet, close, emptyIterator, filterDrop, filterKeep, mapWith, remove, removeNext, toList, toSet
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AGNodeIterator

public AGNodeIterator(org.openrdf.query.TupleQueryResult result)
Constructs an AGNodeIterator from a TupleQueryResult.

Parameters:
result - a TupleQueryResult with binding var "st".
Method Detail

close

public void close()
Description copied from interface: Closeable
Releases system resources associated with the object.

Specified by:
close in interface Closeable
Specified by:
close in interface com.hp.hpl.jena.util.iterator.ClosableIterator<com.hp.hpl.jena.graph.Node>
Overrides:
close in class com.hp.hpl.jena.util.iterator.NiceIterator<com.hp.hpl.jena.graph.Node>
See Also:
Closeable.close()

hasNext

public boolean hasNext()
Specified by:
hasNext in interface Iterator<com.hp.hpl.jena.graph.Node>
Overrides:
hasNext in class com.hp.hpl.jena.util.iterator.NiceIterator<com.hp.hpl.jena.graph.Node>

next

public com.hp.hpl.jena.graph.Node next()
Specified by:
next in interface Iterator<com.hp.hpl.jena.graph.Node>
Overrides:
next in class com.hp.hpl.jena.util.iterator.NiceIterator<com.hp.hpl.jena.graph.Node>

Copyright © 2008-2012 Franz Inc.