public abstract class AbstractReader extends Object implements ReaderBase
| 限定符 | 构造器和说明 |
|---|---|
protected |
AbstractReader(InputGate inputGate) |
| 限定符和类型 | 方法和说明 |
|---|---|
protected boolean |
handleEvent(AbstractEvent event)
Handles the event and returns whether the reader reached an end-of-stream event (either the
end of the whole stream or the end of an superstep).
|
boolean |
hasReachedEndOfSuperstep() |
boolean |
isFinished()
Returns whether the reader has consumed the input.
|
void |
publish(TaskEvent event) |
void |
registerTaskEventListener(EventListener<TaskEvent> listener,
Class<? extends TaskEvent> eventType) |
void |
sendTaskEvent(TaskEvent event) |
void |
setIterativeReader() |
void |
startNextSuperstep() |
protected final InputGate inputGate
protected AbstractReader(InputGate inputGate)
public boolean isFinished()
ReaderBaseisFinished 在接口中 ReaderBasepublic void registerTaskEventListener(EventListener<TaskEvent> listener, Class<? extends TaskEvent> eventType)
registerTaskEventListener 在接口中 ReaderBasepublic void sendTaskEvent(TaskEvent event) throws IOException
sendTaskEvent 在接口中 ReaderBaseIOExceptionprotected boolean handleEvent(AbstractEvent event) throws IOException
IOExceptionpublic void publish(TaskEvent event)
public void setIterativeReader()
setIterativeReader 在接口中 ReaderBasepublic void startNextSuperstep()
startNextSuperstep 在接口中 ReaderBasepublic boolean hasReachedEndOfSuperstep()
hasReachedEndOfSuperstep 在接口中 ReaderBaseCopyright © 2014–2022 The Apache Software Foundation. All rights reserved.