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.Factory |
static interface |
HadoopShims.TextReaderShim
Read data into a Text object in the fastest way possible
|
static interface |
HadoopShims.ZeroCopyReaderShim |
Modifier and Type | Method and Description |
---|---|
HadoopShims.DirectDecompressor |
getDirectDecompressor(HadoopShims.DirectCompressionType codec)
Get a direct decompressor codec, if it is available
|
HadoopShims.TextReaderShim |
getTextReaderShim(InputStream input)
Wrap a TextReaderShim around an input stream.
|
HadoopShims.ZeroCopyReaderShim |
getZeroCopyReader(FSDataInputStream in,
HadoopShims.ByteBufferPoolShim pool)
Provides an HDFS ZeroCopyReader shim.
|
HadoopShims.DirectDecompressor getDirectDecompressor(HadoopShims.DirectCompressionType codec)
codec
- HadoopShims.ZeroCopyReaderShim getZeroCopyReader(FSDataInputStream in, HadoopShims.ByteBufferPoolShim pool) throws IOException
in
- FSDataInputStream to read from (where the cached/mmap buffers are tied to)in
- ByteBufferPoolShim to allocate fallback buffers withIOException
HadoopShims.TextReaderShim getTextReaderShim(InputStream input) throws IOException
IOException
Copyright © 2013–2018 The Apache Software Foundation. All rights reserved.