|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.hp.hpl.jena.util.iterator.NiceIterator
de.fuberlin.wiwiss.d2rq.find.D2RQResultIterator
Extended iterator over the results of a find(spo) query.
The D2RQResultIterator returns the results of a find(spo) query in the form of triples.
The D2RQResultIterator iterates over all contained ResultTripleSets.
History: 06-21-2004 : Initial version of this class.
History:
06-21-2004: Initial version of this class.
, V0.2
GraphD2RQ
,
TripleResultSet
Field Summary | |
private boolean |
m_finished
Flag that the iteration has finished |
private boolean |
m_prefetched
Flag that a triple has been prefetched |
private com.hp.hpl.jena.graph.Triple |
m_prefetchedTriple
Prefetched Triple |
private TripleResultSet |
m_prefetchedTripleResultSet
Prefetched TripleResultSet |
private java.util.Iterator |
tripleResultSetIterator
Iterator over all TripleResultSets |
private java.util.ArrayList |
tripleResultSets
All TripleResultSets for this D2RQResultIterator. |
Fields inherited from class com.hp.hpl.jena.util.iterator.NiceIterator |
|
Constructor Summary | |
D2RQResultIterator()
Create an empty iterator. |
Method Summary | |
void |
addTripleResultSet(TripleResultSet resultSet)
Adds a triple result set to the list of all result sets. |
com.hp.hpl.jena.util.iterator.ExtendedIterator |
andThen(com.hp.hpl.jena.util.iterator.ClosableIterator other)
return a new iterator which delivers all the elements of this iterator and then all the elements of the other iterator. |
private void |
cantRemove()
|
void |
close()
Clean up the allocated resources - result set and statement. |
void |
finalize()
Clean up the database cursor. |
boolean |
hasNext()
Test if there is a next result to return |
private void |
moveForward()
More forward one triple. |
java.lang.Object |
next()
Return the current row |
void |
remove()
Delete the current row entry |
java.lang.Object |
removeNext()
|
Methods inherited from class com.hp.hpl.jena.util.iterator.NiceIterator |
andThen, close, emptyIterator, ensureHasNext, filterDrop, filterKeep, mapWith, noElements |
Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.hp.hpl.jena.util.iterator.ExtendedIterator |
filterDrop, filterKeep, mapWith |
Field Detail |
private java.util.ArrayList tripleResultSets
private java.util.Iterator tripleResultSetIterator
private boolean m_finished
private boolean m_prefetched
private com.hp.hpl.jena.graph.Triple m_prefetchedTriple
private TripleResultSet m_prefetchedTripleResultSet
Constructor Detail |
public D2RQResultIterator()
Method Detail |
public void addTripleResultSet(TripleResultSet resultSet)
public boolean hasNext()
hasNext
in interface java.util.Iterator
public java.lang.Object next()
next
in interface java.util.Iterator
private void moveForward()
public void remove()
remove
in interface java.util.Iterator
public java.lang.Object removeNext()
removeNext
in interface com.hp.hpl.jena.util.iterator.ExtendedIterator
private void cantRemove()
public void close()
close
in interface com.hp.hpl.jena.util.iterator.ClosableIterator
public void finalize()
public com.hp.hpl.jena.util.iterator.ExtendedIterator andThen(com.hp.hpl.jena.util.iterator.ClosableIterator other)
andThen
in interface com.hp.hpl.jena.util.iterator.ExtendedIterator
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |