public interface ICloseableIterator<E> extends Iterator<E>, ICloseable
close()method - you MUST close instances of this interface. Many implementation depends on this in order to release resources, terminate tasks, etc.
falseto ensure that the iterator is closed (and its resources release) as soon as it is exhausted.
Note: Implementations that support
Iterator.remove() MUST NOT
eagerly close the iterator when it is exhausted since that would make it
impossible to remove the last visited statement. Instead they MUST wait
for an explicit
close() by the application.
Copyright © 2006–2016 SYSTAP, LLC DBA Blazegraph. All rights reserved.