Class AsyncIterator<T>
- java.lang.Object
-
- org.deeplearning4j.core.parallelism.AsyncIterator<T>
-
-
Field Summary
Fields Modifier and Type Field Description protected BlockingQueue<T>
buffer
protected Iterator<T>
iterator
protected T
nextElement
protected AtomicBoolean
shouldWork
protected T
terminator
protected org.deeplearning4j.core.parallelism.AsyncIterator.ReaderThread<T>
thread
-
Constructor Summary
Constructors Constructor Description AsyncIterator(@NonNull Iterator<T> iterator)
AsyncIterator(@NonNull Iterator<T> iterator, int bufferSize)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
hasNext()
T
next()
void
remove()
void
shutdown()
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.util.Iterator
forEachRemaining
-
-
-
-
Field Detail
-
buffer
protected BlockingQueue<T> buffer
-
thread
protected org.deeplearning4j.core.parallelism.AsyncIterator.ReaderThread<T> thread
-
terminator
protected T terminator
-
nextElement
protected T nextElement
-
shouldWork
protected AtomicBoolean shouldWork
-
-