public class MultiDataSetIteratorAdapter extends Object implements MultiDataSetIterator
| Constructor and Description |
|---|
MultiDataSetIteratorAdapter(DataSetIterator iter) |
| 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 i)
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 multiDataSetPreProcessor)
Set the preprocessor to be applied to each MultiDataSet, before each MultiDataSet is returned.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEachRemainingpublic MultiDataSetIteratorAdapter(DataSetIterator iter)
public MultiDataSet next(int i)
MultiDataSetIteratornext in interface MultiDataSetIteratori - Number of examples to fetchpublic void setPreProcessor(MultiDataSetPreProcessor multiDataSetPreProcessor)
MultiDataSetIteratorsetPreProcessor in interface MultiDataSetIteratormultiDataSetPreProcessor - MultiDataSetPreProcessor. May be null.public MultiDataSetPreProcessor getPreProcessor()
MultiDataSetIteratorMultiDataSetPreProcessor, if one has previously been set.
Returns null if no preprocessor has been setgetPreProcessor in interface MultiDataSetIteratorpublic boolean resetSupported()
MultiDataSetIteratorresetSupported in interface MultiDataSetIteratorpublic boolean asyncSupported()
MultiDataSetIteratorasyncSupported in interface MultiDataSetIteratorpublic void reset()
MultiDataSetIteratorreset in interface MultiDataSetIteratorpublic boolean hasNext()
hasNext in interface Iterator<MultiDataSet>public MultiDataSet next()
next in interface Iterator<MultiDataSet>public void remove()
remove in interface Iterator<MultiDataSet>Copyright © 2021. All rights reserved.