public class MutableRecordReader<T extends IOReadableWritable> extends AbstractSingleGateRecordReader<T> implements MutableReader<T>
inputGate| Constructor and Description |
|---|
MutableRecordReader(AbstractInvokable taskBase)
Constructs a new mutable record reader and registers a new input gate with the application's environment.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
isInputClosed() |
boolean |
next(T target) |
void |
setIterative(int numEventsUntilEndOfSuperstep) |
getNumberOfInputChannels, publishEventhandleEvent, hasReachedEndOfSuperstep, incrementEndOfSuperstepEventAndCheck, startNextSuperstep, subscribeToEvent, unsubscribeFromEventclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waithasReachedEndOfSuperstep, publishEvent, startNextSuperstep, subscribeToEvent, unsubscribeFromEventpublic MutableRecordReader(AbstractInvokable taskBase)
taskBase - The application that instantiated the record reader.public boolean next(T target) throws IOException, InterruptedException
next in interface MutableReader<T extends IOReadableWritable>IOExceptionInterruptedExceptionpublic boolean isInputClosed()
isInputClosed in interface ReaderBasepublic void setIterative(int numEventsUntilEndOfSuperstep)
setIterative in interface ReaderBasesetIterative in class AbstractRecordReaderCopyright © 2014 The Apache Software Foundation. All rights reserved.