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.
|
getId
public 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 AutoCloseable
Copyright © 2018. All rights reserved.