Class SpillSet.CountingInputStream
java.lang.Object
java.io.InputStream
org.apache.drill.exec.physical.impl.spill.SpillSet.CountingInputStream
- All Implemented Interfaces:
Closeable
,AutoCloseable
- Enclosing class:
- SpillSet
Wrapper around an input stream to collect the total bytes
read through the stream for use in reporting performance
metrics.
-
Constructor Summary
-
Method Summary
Methods inherited from class java.io.InputStream
available, mark, markSupported, reset
-
Constructor Details
-
CountingInputStream
-
-
Method Details
-
read
- Specified by:
read
in classInputStream
- Throws:
IOException
-
read
- Overrides:
read
in classInputStream
- Throws:
IOException
-
read
- Overrides:
read
in classInputStream
- Throws:
IOException
-
skip
- Overrides:
skip
in classInputStream
- Throws:
IOException
-
close
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Overrides:
close
in classInputStream
- Throws:
IOException
-
getCount
public long getCount()
-