public class SingletonMultiDataSetIterator extends Object implements MultiDataSetIterator
Constructor and Description |
---|
SingletonMultiDataSetIterator(MultiDataSet multiDataSet) |
Modifier and Type | Method and Description |
---|---|
boolean |
asyncSupported()
Does this MultiDataSetIterator support asynchronous prefetching of multiple MultiDataSet objects?
Most MultiDataSetIterators do, but in some cases it may not make sense to wrap this iterator in an
iterator that does asynchronous prefetching.
|
MultiDataSetPreProcessor |
getPreProcessor()
Get the
MultiDataSetPreProcessor , if one has previously been set. |
boolean |
hasNext() |
MultiDataSet |
next() |
MultiDataSet |
next(int num)
Fetch the next 'num' examples.
|
void |
remove() |
void |
reset()
Resets the iterator back to the beginning
|
boolean |
resetSupported()
Is resetting supported by this DataSetIterator? Many DataSetIterators do support resetting,
but some don't
|
void |
setPreProcessor(MultiDataSetPreProcessor preProcessor)
Set the preprocessor to be applied to each MultiDataSet, before each MultiDataSet is returned.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEachRemaining
public SingletonMultiDataSetIterator(MultiDataSet multiDataSet)
multiDataSet
- The underlying MultiDataSet to returnpublic MultiDataSet next(int num)
MultiDataSetIterator
next
in interface MultiDataSetIterator
num
- Number of examples to fetchpublic void setPreProcessor(MultiDataSetPreProcessor preProcessor)
MultiDataSetIterator
setPreProcessor
in interface MultiDataSetIterator
preProcessor
- MultiDataSetPreProcessor. May be null.public MultiDataSetPreProcessor getPreProcessor()
MultiDataSetIterator
MultiDataSetPreProcessor
, if one has previously been set.
Returns null if no preprocessor has been setgetPreProcessor
in interface MultiDataSetIterator
public boolean resetSupported()
MultiDataSetIterator
resetSupported
in interface MultiDataSetIterator
public boolean asyncSupported()
MultiDataSetIterator
asyncSupported
in interface MultiDataSetIterator
public void reset()
MultiDataSetIterator
reset
in interface MultiDataSetIterator
public boolean hasNext()
hasNext
in interface Iterator<MultiDataSet>
public MultiDataSet next()
next
in interface Iterator<MultiDataSet>
public void remove()
remove
in interface Iterator<MultiDataSet>
Copyright © 2020. All rights reserved.