public class HadoopShimsPre2_7 extends Object implements HadoopShims
Adds support for:
HadoopShims.ByteBufferPoolShim, HadoopShims.DirectCompressionType, HadoopShims.DirectDecompressor, HadoopShims.KeyMetadata, HadoopShims.KeyProviderKind, HadoopShims.ZeroCopyReaderShim| Constructor and Description | 
|---|
| HadoopShimsPre2_7() | 
| Modifier and Type | Method and Description | 
|---|---|
| boolean | endVariableLengthBlock(OutputStream output)End the OutputStream's current block at the current location. | 
| HadoopShims.DirectDecompressor | getDirectDecompressor(HadoopShims.DirectCompressionType codec)Get a direct decompressor codec, if it is available | 
| KeyProvider | getHadoopKeyProvider(Configuration conf,
                    Random random)Create a Hadoop KeyProvider to get encryption keys. | 
| HadoopShims.ZeroCopyReaderShim | getZeroCopyReader(FSDataInputStream in,
                 HadoopShims.ByteBufferPoolShim pool)Provides an HDFS ZeroCopyReader shim. | 
public HadoopShims.DirectDecompressor getDirectDecompressor(HadoopShims.DirectCompressionType codec)
HadoopShimsgetDirectDecompressor in interface HadoopShimscodec - the kind of decompressor that we needpublic HadoopShims.ZeroCopyReaderShim getZeroCopyReader(FSDataInputStream in, HadoopShims.ByteBufferPoolShim pool) throws IOException
HadoopShimsgetZeroCopyReader in interface HadoopShimsin - FSDataInputStream to read from (where the cached/mmap buffers are
          tied to)pool - ByteBufferPoolShim to allocate fallback buffers withIOExceptionpublic boolean endVariableLengthBlock(OutputStream output)
HadoopShimsendVariableLengthBlock in interface HadoopShimspublic KeyProvider getHadoopKeyProvider(Configuration conf, Random random) throws IOException
HadoopShimsgetHadoopKeyProvider in interface HadoopShimsconf - the configurationrandom - a secure random number generatorIOExceptionCopyright © 2013–2023 The Apache Software Foundation. All rights reserved.