Package org.lmdbjava
Class Meta
- java.lang.Object
-
- org.lmdbjava.Meta
-
public final class Meta extends Object
LMDB metadata functions.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Meta.Version
Immutable return value fromversion()
.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static String
error(int err)
Fetches the LMDB error code description.static Meta.Version
version()
Obtains the LMDB C library version information.
-
-
-
Method Detail
-
error
public static String error(int err)
Fetches the LMDB error code description.End users should not need this method, as LmdbJava converts all LMDB exceptions into a typed Java exception that incorporates the error code. However it is provided here for verification and troubleshooting (eg if the user wishes to see the original LMDB description of the error code, or there is a newer library version etc).
- Parameters:
err
- the error code returned from LMDB- Returns:
- the description
-
version
public static Meta.Version version()
Obtains the LMDB C library version information.- Returns:
- the version data
-
-