public class HadoopShimsPre2_7 extends Object implements HadoopShims
HadoopShims.ByteBufferPoolShim, HadoopShims.DirectCompressionType, HadoopShims.DirectDecompressor, HadoopShims.KeyMetadata, HadoopShims.KeyProvider, HadoopShims.LocalKey, 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
|
HadoopShims.KeyProvider |
getKeyProvider(Configuration conf,
Random random)
Create a 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 HadoopShims.KeyProvider getKeyProvider(Configuration conf, Random random) throws IOException
HadoopShimsgetKeyProvider in interface HadoopShimsconf - the configurationrandom - a secure random number generatorIOExceptionCopyright © 2013–2018 The Apache Software Foundation. All rights reserved.