public final class OutputWriter extends DataTransfer implements AutoCloseable
| Constructor and Description |
|---|
OutputWriter(int hashRangeMultiplier,
int srcTaskIdx,
String srcRuntimeVertexId,
IRVertex dstIrVertex,
RuntimeEdge<?> runtimeEdge,
BlockManagerWorker blockManagerWorker) |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Notifies that all writes for a block is end.
|
void |
write(Iterable dataToWrite)
Writes output data depending on the communication pattern of the edge.
|
getIdpublic OutputWriter(int hashRangeMultiplier,
int srcTaskIdx,
String srcRuntimeVertexId,
@Nullable
IRVertex dstIrVertex,
RuntimeEdge<?> runtimeEdge,
BlockManagerWorker blockManagerWorker)
public void write(Iterable dataToWrite)
dataToWrite - An iterable for the elements to be written.public void close()
close in interface AutoCloseableCopyright © 2018. All rights reserved.