T - the type of the record that can be emitted with this record writerpublic class RecordWriter<T extends IOReadableWritable> extends BufferWriter
outputGate| Constructor and Description |
|---|
RecordWriter(AbstractInvokable invokable) |
RecordWriter(AbstractInvokable invokable,
ChannelSelector<T> channelSelector) |
| Modifier and Type | Method and Description |
|---|---|
void |
broadcastEvent(AbstractEvent event) |
void |
clearBuffers() |
void |
emit(T record) |
void |
flush() |
void |
initializeSerializers() |
void |
sendEndOfSuperstep() |
broadcastBuffer, sendBuffer, sendBufferAndEvent, sendEvent, subscribeToEvent, unsubscribeFromEventpublic RecordWriter(AbstractInvokable invokable)
public RecordWriter(AbstractInvokable invokable, ChannelSelector<T> channelSelector)
public void initializeSerializers()
public void emit(T record) throws IOException, InterruptedException
IOExceptionInterruptedExceptionpublic void flush()
throws IOException,
InterruptedException
IOExceptionInterruptedExceptionpublic void broadcastEvent(AbstractEvent event) throws IOException, InterruptedException
broadcastEvent in class BufferWriterIOExceptionInterruptedExceptionpublic void sendEndOfSuperstep()
throws IOException,
InterruptedException
sendEndOfSuperstep in class BufferWriterIOExceptionInterruptedExceptionpublic void clearBuffers()
Copyright © 2015 The Apache Software Foundation. All rights reserved.