public class HadoopSnappyCompressionInputStream extends CompressionInputStream
delegate| 构造器和说明 |
|---|
HadoopSnappyCompressionInputStream(InputStream in,
CompressionProvider provider) |
| 限定符和类型 | 方法和说明 |
|---|---|
protected static InputStream |
getDelegate(InputStream in) |
static InputStream |
getSnappyInputStream(InputStream in)
Gets a CompressionInputStream that uses the snappy codec and wraps the supplied base input stream.
|
static InputStream |
getSnappyInputStream(int bufferSize,
InputStream in)
Gets an InputStream that uses the snappy codec and wraps the supplied base input stream.
|
Object |
nextEntry() |
close, getCompressionProvider, read, read, readavailable, mark, markSupported, reset, skippublic HadoopSnappyCompressionInputStream(InputStream in, CompressionProvider provider) throws IOException
IOExceptionprotected static InputStream getDelegate(InputStream in) throws IOException
IOExceptionpublic Object nextEntry() throws IOException
nextEntry 在类中 CompressionInputStreamIOExceptionpublic static InputStream getSnappyInputStream(InputStream in) throws Exception
in - the base input stream to wrap aroundException - if snappy is not available or an error occurs during reflectionpublic static InputStream getSnappyInputStream(int bufferSize, InputStream in) throws Exception
the - buffer size for the codec to use (in bytes)in - the base input stream to wrap aroundException - if snappy is not available or an error occurs during reflectionCopyright © 2024 Hitachi Vantara. All rights reserved.