|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectit.unimi.di.mg4j.document.AbstractDocumentIterator
it.unimi.di.mg4j.document.JdbcDocumentCollection.JdbcDocumentIterator
protected class JdbcDocumentCollection.JdbcDocumentIterator
An iterator over the whole collection that performs a single DBMS transaction.
| Method Summary | |
|---|---|
void |
close()
Closes this document iterator, releasing all resources. |
Document |
nextDocument()
Returns the next document. |
| Methods inherited from class it.unimi.di.mg4j.document.AbstractDocumentIterator |
|---|
finalize |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public Document nextDocument()
throws IOException
DocumentIterator
null if there are no other documents.
IOException
public void close()
throws IOException
DocumentIteratorYou should always call this method after having finished with this iterator. Implementations are invited to call this method in a finaliser as a safety net, but since there is no guarantee as to when finalisers are invoked, you should not depend on this behaviour.
close in interface DocumentIteratorclose in interface Closeableclose in class AbstractDocumentIteratorIOException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||