Package org.apache.spark.storage
Class TimeTrackingOutputStream
Object
java.io.OutputStream
org.apache.spark.storage.TimeTrackingOutputStream
- All Implemented Interfaces:
- Closeable,- Flushable,- AutoCloseable
Intercepts write calls and tracks total time spent writing in order to update shuffle write
 metrics. Not thread safe.
- 
Constructor SummaryConstructorsConstructorDescriptionTimeTrackingOutputStream(org.apache.spark.shuffle.ShuffleWriteMetricsReporter writeMetrics, OutputStream outputStream) 
- 
Method SummaryMethods inherited from class java.io.OutputStreamnullOutputStream
- 
Constructor Details- 
TimeTrackingOutputStreampublic TimeTrackingOutputStream(org.apache.spark.shuffle.ShuffleWriteMetricsReporter writeMetrics, OutputStream outputStream) 
 
- 
- 
Method Details- 
write- Specified by:
- writein class- OutputStream
- Throws:
- IOException
 
- 
write- Overrides:
- writein class- OutputStream
- Throws:
- IOException
 
- 
write- Overrides:
- writein class- OutputStream
- Throws:
- IOException
 
- 
flush- Specified by:
- flushin interface- Flushable
- Overrides:
- flushin class- OutputStream
- Throws:
- IOException
 
- 
close- Specified by:
- closein interface- AutoCloseable
- Specified by:
- closein interface- Closeable
- Overrides:
- closein class- OutputStream
- Throws:
- IOException
 
 
-