Class IntermediateDataIOFactory
- java.lang.Object
-
- org.apache.nemo.runtime.executor.datatransfer.IntermediateDataIOFactory
-
public final class IntermediateDataIOFactory extends java.lang.Object
A factory that producesInputReader
andOutputWriter
.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description InputReader
createReader(java.lang.String dstTaskId, IRVertex srcIRVertex, RuntimeEdge runtimeEdge)
Creates anInputReader
between two stages.OutputWriter
createWriter(java.lang.String srcTaskId, RuntimeEdge<?> runtimeEdge)
Creates anOutputWriter
between two stages.
-
-
-
Method Detail
-
createWriter
public OutputWriter createWriter(java.lang.String srcTaskId, RuntimeEdge<?> runtimeEdge)
Creates anOutputWriter
between two stages.- Parameters:
srcTaskId
- the id of the source task.runtimeEdge
- that connects the srcTask to the tasks belonging to dstIRVertex.- Returns:
- the
OutputWriter
created.
-
createReader
public InputReader createReader(java.lang.String dstTaskId, IRVertex srcIRVertex, RuntimeEdge runtimeEdge)
Creates anInputReader
between two stages.- Parameters:
dstTaskId
- the id of the destination task.srcIRVertex
- theIRVertex
that output the data to be read.runtimeEdge
- that connects the tasks belonging to srcIRVertex to dstTask.- Returns:
- the
InputReader
created.
-
-