|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectit.uniroma2.art.owlart.models.impl.ResourceIteratorWrappingNodeIterator
public class ResourceIteratorWrappingNodeIterator
An adapter class between Node and Resource Iterators. This is to be used if the developer knows in advance
that wrapped iterator contains only Literals. It is more performant than the
ResourceIteratorWrappingNodeIterator because it omits checks on the nature of the wrapped nodes,
expecting them to be Resources
| Constructor Summary | |
|---|---|
ResourceIteratorWrappingNodeIterator(ARTNodeIterator resIt)
|
|
| Method Summary | |
|---|---|
void |
close()
closes the iterator and release resources |
ARTResource |
getNext()
gets the next element of the iterator, and advances over the data stream (roughly equivalent to traditional next() iterator method) |
boolean |
hasNext()
|
ARTResource |
next()
|
void |
remove()
|
boolean |
streamOpen()
tells if the data stream associated to this iterator is not empty (roughly equivalent to traditional hasNext() iterator method) |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ResourceIteratorWrappingNodeIterator(ARTNodeIterator resIt)
| Method Detail |
|---|
public void close()
throws ModelAccessException
RDFIterator
close in interface RDFIterator<ARTResource>ModelAccessException
public boolean streamOpen()
throws ModelAccessException
RDFIteratorhasNext() iterator method)
streamOpen in interface RDFIterator<ARTResource>ModelAccessException
public ARTResource getNext()
throws ModelAccessException
RDFIteratornext() iterator method)
getNext in interface RDFIterator<ARTResource>ModelAccessExceptionpublic boolean hasNext()
hasNext in interface java.util.Iterator<ARTResource>public ARTResource next()
next in interface java.util.Iterator<ARTResource>public void remove()
remove in interface java.util.Iterator<ARTResource>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||