Package org.apache.spark.storage
Class BufferReleasingInputStream
Object
java.io.InputStream
org.apache.spark.storage.BufferReleasingInputStream
- All Implemented Interfaces:
- Closeable,- AutoCloseable
Helper class that ensures a ManagedBuffer is released upon InputStream.close() and
 also detects stream corruption if streamCompressedOrEncrypted is true
- 
Constructor SummaryConstructorsConstructorDescriptionBufferReleasingInputStream(InputStream delegate, org.apache.spark.storage.ShuffleBlockFetcherIterator iterator, BlockId blockId, int mapIndex, BlockManagerId address, boolean detectCorruption, boolean isNetworkReqDone, scala.Option<CheckedInputStream> checkedInOpt) 
- 
Method SummaryMethods inherited from class java.io.InputStreamnullInputStream, readAllBytes, readNBytes, readNBytes, skipNBytes, transferTo
- 
Constructor Details- 
BufferReleasingInputStreampublic BufferReleasingInputStream(InputStream delegate, org.apache.spark.storage.ShuffleBlockFetcherIterator iterator, BlockId blockId, int mapIndex, BlockManagerId address, boolean detectCorruption, boolean isNetworkReqDone, scala.Option<CheckedInputStream> checkedInOpt) 
 
- 
- 
Method Details- 
availablepublic int available()- Overrides:
- availablein class- InputStream
 
- 
closepublic void close()- Specified by:
- closein interface- AutoCloseable
- Specified by:
- closein interface- Closeable
- Overrides:
- closein class- InputStream
 
- 
markpublic void mark(int readlimit) - Overrides:
- markin class- InputStream
 
- 
markSupportedpublic boolean markSupported()- Overrides:
- markSupportedin class- InputStream
 
- 
readpublic int read()- Specified by:
- readin class- InputStream
 
- 
readpublic int read(byte[] b) - Overrides:
- readin class- InputStream
 
- 
readpublic int read(byte[] b, int off, int len) - Overrides:
- readin class- InputStream
 
- 
resetpublic void reset()- Overrides:
- resetin class- InputStream
 
- 
skippublic long skip(long n) - Overrides:
- skipin class- InputStream
 
 
-