public class HadoopShimsPre2_6 extends Object implements HadoopShims
Adds support for:
HadoopShims.ByteBufferPoolShim, HadoopShims.DirectCompressionType, HadoopShims.DirectDecompressor, HadoopShims.KeyMetadata, HadoopShims.KeyProviderKind, HadoopShims.ZeroCopyReaderShim
Constructor and Description |
---|
HadoopShimsPre2_6() |
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)
HadoopShims
getDirectDecompressor
in interface HadoopShims
codec
- the kind of decompressor that we needpublic HadoopShims.ZeroCopyReaderShim getZeroCopyReader(FSDataInputStream in, HadoopShims.ByteBufferPoolShim pool) throws IOException
HadoopShims
getZeroCopyReader
in interface HadoopShims
in
- FSDataInputStream to read from (where the cached/mmap buffers are
tied to)pool
- ByteBufferPoolShim to allocate fallback buffers withIOException
public boolean endVariableLengthBlock(OutputStream output)
HadoopShims
endVariableLengthBlock
in interface HadoopShims
public KeyProvider getHadoopKeyProvider(Configuration conf, Random random)
HadoopShims
getHadoopKeyProvider
in interface HadoopShims
conf
- the configurationrandom
- a secure random number generatorCopyright © 2013–2023 The Apache Software Foundation. All rights reserved.