Class SpillSet.CountingOutputStream
java.lang.Object
java.io.OutputStream
org.apache.drill.exec.physical.impl.spill.SpillSet.CountingOutputStream
- All Implemented Interfaces:
Closeable
,Flushable
,AutoCloseable
- Enclosing class:
- SpillSet
Wrapper around an output stream to collect the total bytes
written through the stream for use in reporting performance
metrics.
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
CountingOutputStream
-
-
Method Details
-
write
- Specified by:
write
in classOutputStream
- Throws:
IOException
-
write
- Overrides:
write
in classOutputStream
- Throws:
IOException
-
write
- Overrides:
write
in classOutputStream
- Throws:
IOException
-
flush
- Specified by:
flush
in interfaceFlushable
- Overrides:
flush
in classOutputStream
- Throws:
IOException
-
close
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Overrides:
close
in classOutputStream
- Throws:
IOException
-
getCount
public long getCount()
-