@InterfaceAudience.Private public class NativeRuntime extends Object
Constructor and Description |
---|
NativeRuntime() |
Modifier and Type | Method and Description |
---|---|
static void |
configure(org.apache.hadoop.conf.Configuration jobConf) |
static long |
createNativeObject(String clazz)
create native object We use it to create native handlers
|
static boolean |
isNativeLibraryLoaded() |
static long |
registerLibrary(String libraryName,
String clazz)
Register a customized library
|
static void |
releaseNativeObject(long addr)
destroy native object We use to destroy native handlers
|
static void |
reportStatus(org.apache.hadoop.mapred.Task.TaskReporter reporter)
Get the status report from native space
|
static boolean |
supportsCompressionCodec(byte[] codec)
Check whether the native side has compression codec support built in
|
public static boolean isNativeLibraryLoaded()
public static void configure(org.apache.hadoop.conf.Configuration jobConf)
public static long createNativeObject(String clazz)
public static long registerLibrary(String libraryName, String clazz)
public static void releaseNativeObject(long addr)
public static void reportStatus(org.apache.hadoop.mapred.Task.TaskReporter reporter) throws IOException
IOException
public static boolean supportsCompressionCodec(byte[] codec)
Copyright © 2008–2024 Apache Software Foundation. All rights reserved.