Package it.unimi.di.big.mg4j.document
Class AbstractDocumentIterator
- java.lang.Object
-
- it.unimi.di.big.mg4j.document.AbstractDocumentIterator
-
- All Implemented Interfaces:
DocumentIterator,SafelyCloseable,Closeable,AutoCloseable
- Direct Known Subclasses:
JdbcDocumentCollection.JdbcDocumentIterator
public abstract class AbstractDocumentIterator extends Object implements DocumentIterator, SafelyCloseable
An abstract,safely closeableimplementation of a document iterator.
-
-
Constructor Summary
Constructors Constructor Description AbstractDocumentIterator()
-
-
-
Method Detail
-
finalize
protected void finalize() throws Throwable
-
close
public void close() throws IOExceptionDescription copied from interface:DocumentIteratorCloses this document iterator, releasing all resources.You 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.
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Specified by:
closein interfaceDocumentIterator- Throws:
IOException
-
-