|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.openrdf.sesame.sailimpl.rdbms.iterators.RdbmsValueIterator
A ResourceIterator that executes an SQL query. RdbmsValueIterator is an abstract class, no instances of RdbmsValueIterator can be created. A subclass of RdbmsValueIterator is defined that either iterates rdfs:Resources or rdfs:Literals. This subclass must implement getResult(), the implementation of getResult() must call the proper contructor of either rdfs:Resource or rdfs:Literal.
| Constructor Summary | |
RdbmsValueIterator(RdfSource source,
String[] namespaceNames,
Connection databaseCon,
String query)
Constructor. |
|
| Method Summary | |
void |
close()
Closes the iterator and frees any resources that it uses (e.g. |
boolean |
hasNext()
Checks whether there are any more values available. |
Value |
next()
Gets the next value. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public RdbmsValueIterator(RdfSource source,
String[] namespaceNames,
Connection databaseCon,
String query)
databaseCon - connection to the repositoryquery - to execute| Method Detail |
public boolean hasNext()
ValueIterator
hasNext in interface ValueIteratorpublic Value next()
ValueIterator
next in interface ValueIteratorpublic void close()
ValueIterator
close in interface ValueIterator
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||