Class PipeOutputWriter
- java.lang.Object
-
- org.apache.nemo.runtime.executor.datatransfer.PipeOutputWriter
-
- All Implemented Interfaces:
OutputWriter
public final class PipeOutputWriter extends java.lang.Object implements OutputWriter
Represents the output data transfer from a task.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
java.util.Optional<java.lang.Long>
getWrittenBytes()
void
write(java.lang.Object element)
Writes output element.void
writeLatencymark(LatencyMark latencymark)
Writes latencymark to all edges.void
writeWatermark(Watermark watermark)
Writes watermarks to all edges.
-
-
-
Method Detail
-
write
public void write(java.lang.Object element)
Writes output element.- Specified by:
write
in interfaceOutputWriter
- Parameters:
element
- the element to write.
-
writeWatermark
public void writeWatermark(Watermark watermark)
Description copied from interface:OutputWriter
Writes watermarks to all edges.- Specified by:
writeWatermark
in interfaceOutputWriter
- Parameters:
watermark
- watermark
-
writeLatencymark
public void writeLatencymark(LatencyMark latencymark)
Description copied from interface:OutputWriter
Writes latencymark to all edges. It does not consider buffered time in windows. transfer to the next task immediately.- Specified by:
writeLatencymark
in interfaceOutputWriter
- Parameters:
latencymark
- latencymark
-
getWrittenBytes
public java.util.Optional<java.lang.Long> getWrittenBytes()
- Specified by:
getWrittenBytes
in interfaceOutputWriter
- Returns:
- the total written bytes.
-
close
public void close()
- Specified by:
close
in interfaceOutputWriter
-
-