public class HadoopSnappyCompressionProvider extends Object implements CompressionProvider
| 限定符和类型 | 字段和说明 |
|---|---|
static int |
IO_COMPRESSION_CODEC_SNAPPY_DEFAULT_BUFFERSIZE |
| 构造器和说明 |
|---|
HadoopSnappyCompressionProvider() |
| 限定符和类型 | 方法和说明 |
|---|---|
HadoopSnappyCompressionInputStream |
createInputStream(InputStream in)
Creates an input stream that decompresses data (according to the provider's implementation)
|
HadoopSnappyCompressionOutputStream |
createOutputStream(OutputStream out)
Creates an output stream that compresses data (according to the provider's implementation)
|
static Object |
getActiveSnappyShim()
Locate the Snappy Shim for the active Hadoop Configuration via the Hadoop Configuration Util
|
String |
getDefaultExtension()
Gets the default file extension for this provider.
|
String |
getDescription()
Gets the name of this provider.
|
String |
getName()
Gets the name of this provider.
|
static boolean |
isHadoopSnappyAvailable()
Tests whether hadoop-snappy (not to be confused with other java-based snappy implementations such as jsnappy or
snappy-java) plus the native snappy libraries are available.
|
boolean |
supportsInput()
Whether this compression provider supports input streams
|
boolean |
supportsOutput()
Whether this compression provider supports output streams
|
public static final int IO_COMPRESSION_CODEC_SNAPPY_DEFAULT_BUFFERSIZE
public static Object getActiveSnappyShim() throws Exception
org.pentaho.hadoop.shim.spi.SnappyShim to interact with SnappyException - Error locating a valid Snappy shim:
org.pentaho.hadoop.hive.jdbc.HadoopConfigurationUtil could not be locatedpublic static boolean isHadoopSnappyAvailable()
public HadoopSnappyCompressionInputStream createInputStream(InputStream in) throws IOException
CompressionProvidercreateInputStream 在接口中 CompressionProviderin - An existing input stream to wrapIOExceptionpublic boolean supportsInput()
CompressionProvidersupportsInput 在接口中 CompressionProviderpublic HadoopSnappyCompressionOutputStream createOutputStream(OutputStream out) throws IOException
CompressionProvidercreateOutputStream 在接口中 CompressionProviderout - An existing output stream to wrapIOExceptionpublic boolean supportsOutput()
CompressionProvidersupportsOutput 在接口中 CompressionProviderpublic String getDescription()
CompressionProvidergetDescription 在接口中 CompressionProviderpublic String getName()
CompressionProvidergetName 在接口中 CompressionProviderpublic String getDefaultExtension()
CompressionProvidergetDefaultExtension 在接口中 CompressionProviderCopyright © 2024 Hitachi Vantara. All rights reserved.