public interface HadoopShims
Modifier and Type | Interface and Description |
---|---|
static interface |
HadoopShims.ByteBufferPoolShim
a hadoop.io ByteBufferPool shim.
|
static class |
HadoopShims.DirectCompressionType |
static interface |
HadoopShims.DirectDecompressor |
static class |
HadoopShims.KeyMetadata
Information about a crypto key including the key name, version, and the
algorithm.
|
static class |
HadoopShims.KeyProviderKind
The known KeyProviders for column encryption.
|
static interface |
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.
|
HadoopShims.DirectDecompressor getDirectDecompressor(HadoopShims.DirectCompressionType codec)
codec
- the kind of decompressor that we needHadoopShims.ZeroCopyReaderShim getZeroCopyReader(FSDataInputStream in, HadoopShims.ByteBufferPoolShim pool) throws IOException
in
- FSDataInputStream to read from (where the cached/mmap buffers are
tied to)pool
- ByteBufferPoolShim to allocate fallback buffers withIOException
boolean endVariableLengthBlock(OutputStream output) throws IOException
IOException
KeyProvider getHadoopKeyProvider(Configuration conf, Random random) throws IOException
conf
- the configurationrandom
- a secure random number generatorIOException
Copyright © 2013–2022 The Apache Software Foundation. All rights reserved.