@Private
public class NativeRuntime
extends java.lang.Object
| Constructor | Description |
|---|---|
NativeRuntime() |
| Modifier and Type | Method | Description |
|---|---|---|
static void |
configure(org.apache.hadoop.conf.Configuration jobConf) |
|
static long |
createNativeObject(java.lang.String clazz) |
create native object We use it to create native handlers
|
static boolean |
isNativeLibraryLoaded() |
|
static long |
registerLibrary(java.lang.String libraryName,
java.lang.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(java.lang.String clazz)
public static long registerLibrary(java.lang.String libraryName,
java.lang.String clazz)
public static void releaseNativeObject(long addr)
public static void reportStatus(org.apache.hadoop.mapred.Task.TaskReporter reporter)
throws java.io.IOException
java.io.IOExceptionpublic static boolean supportsCompressionCodec(byte[] codec)
Copyright © 2008–2025 Apache Software Foundation. All rights reserved.