@InterfaceAudience.Private @InterfaceStability.Unstable public class NativeCodeLoader extends Object
Constructor and Description |
---|
NativeCodeLoader() |
Modifier and Type | Method and Description |
---|---|
static boolean |
buildSupportsOpenssl()
Returns true only if this build was compiled with support for openssl.
|
static boolean |
buildSupportsSnappy()
Returns true only if this build was compiled with support for snappy.
|
static String |
getLibraryName() |
boolean |
getLoadNativeLibraries(Configuration conf)
Return if native hadoop libraries, if present, can be used for this job.
|
static boolean |
isNativeCodeLoaded()
Check if native-hadoop code is loaded for this platform.
|
void |
setLoadNativeLibraries(Configuration conf,
boolean loadNativeLibraries)
Set if native hadoop libraries, if present, can be used for this job.
|
public static boolean isNativeCodeLoaded()
true
if native-hadoop is loaded,
else false
public static boolean buildSupportsSnappy()
public static boolean buildSupportsOpenssl()
public static String getLibraryName()
public boolean getLoadNativeLibraries(Configuration conf)
conf
- configurationtrue
if native hadoop libraries, if present, can be
used for this job; false
otherwise.public void setLoadNativeLibraries(Configuration conf, boolean loadNativeLibraries)
conf
- configurationloadNativeLibraries
- can native hadoop libraries be loadedCopyright © 2014–2020 The Apache Software Foundation. All rights reserved.