public interface ParallelDataSetIterator extends DataSetIterator
Modifier and Type | Method and Description |
---|---|
void |
attachThread(int producer)
This method sets consumer affinity to specific producer
PLEASE NOTE: this method is optional, and it'll change only nextFor()/hasNextFor() mechanics
|
boolean |
hasNextFor()
Returns true, if attached producer has something in queue, false otherwise
|
boolean |
hasNextFor(int consumer)
Returns true, if attached producer has something in queue, false otherwise
|
DataSet |
nextFor()
Returns next DataSet for attached consumer
|
DataSet |
nextFor(int consumer)
Returns next DataSet for given consumer
|
asyncSupported, batch, cursor, getLabels, getPreProcessor, inputColumns, next, numExamples, reset, resetSupported, setPreProcessor, totalExamples, totalOutcomes
forEachRemaining, hasNext, next, remove
void attachThread(int producer)
boolean hasNextFor()
boolean hasNextFor(int consumer)
consumer
- DataSet nextFor(int consumer)
consumer
- DataSet nextFor()
Copyright © 2017. All rights reserved.