Class NativeCodeLoader

java.lang.Object
org.apache.hadoop.util.NativeCodeLoader

@Private @Unstable public final class NativeCodeLoader extends Object
A helper to load the native hadoop code i.e. libhadoop.so. This handles the fallback to either the bundled libhadoop-Linux-i386-32.so or the default java implementations where appropriate.
  • Method Details

    • isNativeCodeLoaded

      public static boolean isNativeCodeLoaded()
      Check if native-hadoop code is loaded for this platform.
      Returns:
      true if native-hadoop is loaded, else false
    • buildSupportsIsal

      public static boolean buildSupportsIsal()
      Returns true only if this build was compiled with support for ISA-L.
      Returns:
      if this build was compiled with support for ISA-L true, not false.
    • buildSupportsZstd

      public static boolean buildSupportsZstd()
      Returns true only if this build was compiled with support for ZStandard.
      Returns:
      if this build was compiled with support for ZStandard true,not false.
    • buildSupportsOpenssl

      public static boolean buildSupportsOpenssl()
      Returns true only if this build was compiled with support for openssl.
      Returns:
      if this build was compiled with support for openssl true,not false.
    • getLibraryName

      public static String getLibraryName()