public class HadoopShimsPre2_3 extends Object implements HadoopShims
HadoopShims.ByteBufferPoolShim, HadoopShims.DirectCompressionType, HadoopShims.DirectDecompressor, HadoopShims.KeyMetadata, HadoopShims.KeyProviderKind, HadoopShims.ZeroCopyReaderShim| 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)
HadoopShimsgetHadoopKeyProvider in interface HadoopShimsconf - the configurationrandom - a secure random number generatorCopyright © 2013–2022 The Apache Software Foundation. All rights reserved.