public class ThickCloseableIterator<E> extends Object implements ICloseableIterator<E>, Serializable
ICloseableIterator that may be serialized and sent to a remote
JVM for consumption.| Constructor and Description |
|---|
ThickCloseableIterator(E[] a)
Create a thick iterator.
|
ThickCloseableIterator(E[] a,
int len)
Create a thick iterator.
|
public ThickCloseableIterator(E[] a)
a - The array of elements to be visited by the iterator (may be
empty, but may not be null).IllegalArgumentException - if a is null.public ThickCloseableIterator(E[] a, int len)
a - The array of elements to be visited by the iterator (may be
empty, but may not be null).len - The number of elements to be visited by the iterator. Must be
less than the length of the array.IllegalArgumentException - if a is null.public void close()
ICloseableIteratorICloseableIterator.close() if Iterator.hasNext()
method returns false to 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 ICloseableIterator.close() by the application.
close in interface ICloseableclose in interface ICloseableIterator<E>Copyright © 2006–2019 SYSTAP, LLC DBA Blazegraph. All rights reserved.