public final class H3CoreLoader extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
H3CoreLoader.OperatingSystem
Operating systems supported by H3-Java.
|
| Modifier and Type | Method and Description |
|---|---|
static com.uber.h3core.NativeMethods |
loadNatives()
For use when the H3 library should be unpacked from the JAR and loaded.
|
static com.uber.h3core.NativeMethods |
loadNatives(H3CoreLoader.OperatingSystem os,
String arch)
For use when the H3 library should be unpacked from the JAR and loaded.
|
static com.uber.h3core.NativeMethods |
loadSystemNatives()
For use when the H3 library is installed system-wide and Java is able to locate it.
|
public static com.uber.h3core.NativeMethods loadNatives()
throws IOException
SecurityException - Loading the library was not allowed by the
SecurityManager.UnsatisfiedLinkError - The library could not be loadedIOException - Failed to unpack the librarypublic static com.uber.h3core.NativeMethods loadNatives(H3CoreLoader.OperatingSystem os, String arch) throws IOException
H3 will only successfully extract the library once, even if different
operating system and architecture are specified, or if loadNatives()
was used instead.
os - Operating system whose lobrary should be usedarch - Architecture name, as packaged in the H3 librarySecurityException - Loading the library was not allowed by the
SecurityManager.UnsatisfiedLinkError - The library could not be loadedIOException - Failed to unpack the librarypublic static com.uber.h3core.NativeMethods loadSystemNatives()
SecurityException - Loading the library was not allowed by the
SecurityManager.UnsatisfiedLinkError - The library could not be loadedCopyright © 2018 Uber Open Source. All rights reserved.