public class HadoopShimsCurrent extends Object implements HadoopShims
HadoopShims.ByteBufferPoolShim, HadoopShims.DirectCompressionType, HadoopShims.DirectDecompressor, HadoopShims.KeyMetadata, HadoopShims.KeyProviderKind, HadoopShims.ZeroCopyReaderShim
Constructor and Description |
---|
HadoopShimsCurrent() |
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) throws IOException
HadoopShims
endVariableLengthBlock
in interface HadoopShims
IOException
public KeyProvider getHadoopKeyProvider(Configuration conf, Random random) throws IOException
HadoopShims
getHadoopKeyProvider
in interface HadoopShims
conf
- the configurationrandom
- a secure random number generatorIOException
Copyright © 2013–2019 The Apache Software Foundation. All rights reserved.