Package org.lwjgl.util.lmdb
Class MDBStat
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.util.lmdb.MDBStat
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class MDBStat extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceStatistics for a database in the environment.Layout
struct MDB_stat { unsigned intms_psize(); unsigned intms_depth(); size_tms_branch_pages(); size_tms_leaf_pages(); size_tms_overflow_pages(); size_tms_entries(); }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classMDBStat.BufferAn array ofMDBStatstructs.
-
Field Summary
Fields Modifier and Type Field Description static intALIGNOFThe struct alignment in bytes.static intMS_BRANCH_PAGES
MS_DEPTH
MS_ENTRIES
MS_LEAF_PAGES
MS_OVERFLOW_PAGES
MS_PSIZEThe struct member offsets.static intSIZEOFThe struct size in bytes.
-
Constructor Summary
Constructors Constructor Description MDBStat(java.nio.ByteBuffer container)Creates aMDBStatinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static MDBStatcalloc()Returns a newMDBStatinstance allocated withmemCalloc.static MDBStat.Buffercalloc(int capacity)Returns a newMDBStat.Bufferinstance allocated withmemCalloc.static MDBStat.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newMDBStat.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static MDBStatcalloc(org.lwjgl.system.MemoryStack stack)Returns a newMDBStatinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static MDBStatcallocStack()Deprecated.static MDBStat.BuffercallocStack(int capacity)Deprecated.static MDBStat.BuffercallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Deprecated.static MDBStatcallocStack(org.lwjgl.system.MemoryStack stack)Deprecated.static MDBStatcreate()Returns a newMDBStatinstance allocated withBufferUtils.static MDBStat.Buffercreate(int capacity)Returns a newMDBStat.Bufferinstance allocated withBufferUtils.static MDBStatcreate(long address)Returns a newMDBStatinstance for the specified memory address.static MDBStat.Buffercreate(long address, int capacity)Create aMDBStat.Bufferinstance at the specified memory.static MDBStatcreateSafe(long address)static MDBStat.BuffercreateSafe(long address, int capacity)static MDBStatmalloc()Returns a newMDBStatinstance allocated withmemAlloc.static MDBStat.Buffermalloc(int capacity)Returns a newMDBStat.Bufferinstance allocated withmemAlloc.static MDBStat.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newMDBStat.Bufferinstance allocated on the specifiedMemoryStack.static MDBStatmalloc(org.lwjgl.system.MemoryStack stack)Returns a newMDBStatinstance allocated on the specifiedMemoryStack.static MDBStatmallocStack()Deprecated.static MDBStat.BuffermallocStack(int capacity)Deprecated.static MDBStat.BuffermallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Deprecated.static MDBStatmallocStack(org.lwjgl.system.MemoryStack stack)Deprecated.longms_branch_pages()Number of internal (non-leaf) pages.intms_depth()Depth (height) of the B-tree.longms_entries()Number of data items.longms_leaf_pages()Number of leaf pages.longms_overflow_pages()Number of overflow pages.intms_psize()Size of a database page.static longnms_branch_pages(long struct)Unsafe version ofms_branch_pages().static intnms_depth(long struct)Unsafe version ofms_depth().static longnms_entries(long struct)Unsafe version ofms_entries().static longnms_leaf_pages(long struct)Unsafe version ofms_leaf_pages().static longnms_overflow_pages(long struct)Unsafe version ofms_overflow_pages().static intnms_psize(long struct)Unsafe version ofms_psize().intsizeof()
-
-
-
Constructor Detail
-
MDBStat
public MDBStat(java.nio.ByteBuffer container)
Creates aMDBStatinstance at the current position of the specifiedByteBuffercontainer. Changes to the buffer's content will be visible to the struct instance and vice versa.The created instance holds a strong reference to the container object.
-
-
Method Detail
-
sizeof
public int sizeof()
- Specified by:
sizeofin classorg.lwjgl.system.Struct
-
ms_psize
public int ms_psize()
Size of a database page. This is currently the same for all databases.
-
ms_depth
public int ms_depth()
Depth (height) of the B-tree.
-
ms_branch_pages
public long ms_branch_pages()
Number of internal (non-leaf) pages.
-
ms_leaf_pages
public long ms_leaf_pages()
Number of leaf pages.
-
ms_overflow_pages
public long ms_overflow_pages()
Number of overflow pages.
-
ms_entries
public long ms_entries()
Number of data items.
-
malloc
public static MDBStat malloc()
Returns a newMDBStatinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static MDBStat calloc()
Returns a newMDBStatinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static MDBStat create()
Returns a newMDBStatinstance allocated withBufferUtils.
-
create
public static MDBStat create(long address)
Returns a newMDBStatinstance for the specified memory address.
-
createSafe
@Nullable public static MDBStat createSafe(long address)
-
malloc
public static MDBStat.Buffer malloc(int capacity)
Returns a newMDBStat.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static MDBStat.Buffer calloc(int capacity)
Returns a newMDBStat.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static MDBStat.Buffer create(int capacity)
Returns a newMDBStat.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static MDBStat.Buffer create(long address, int capacity)
Create aMDBStat.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static MDBStat.Buffer createSafe(long address, int capacity)
-
mallocStack
@Deprecated public static MDBStat mallocStack()
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead.
-
callocStack
@Deprecated public static MDBStat callocStack()
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead.
-
mallocStack
@Deprecated public static MDBStat mallocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead.
-
callocStack
@Deprecated public static MDBStat callocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead.
-
mallocStack
@Deprecated public static MDBStat.Buffer mallocStack(int capacity)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)instead.
-
callocStack
@Deprecated public static MDBStat.Buffer callocStack(int capacity)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead.
-
mallocStack
@Deprecated public static MDBStat.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)instead.
-
callocStack
@Deprecated public static MDBStat.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead.
-
malloc
public static MDBStat malloc(org.lwjgl.system.MemoryStack stack)
Returns a newMDBStatinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static MDBStat calloc(org.lwjgl.system.MemoryStack stack)
Returns a newMDBStatinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static MDBStat.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newMDBStat.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static MDBStat.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newMDBStat.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
nms_psize
public static int nms_psize(long struct)
Unsafe version ofms_psize().
-
nms_depth
public static int nms_depth(long struct)
Unsafe version ofms_depth().
-
nms_branch_pages
public static long nms_branch_pages(long struct)
Unsafe version ofms_branch_pages().
-
nms_leaf_pages
public static long nms_leaf_pages(long struct)
Unsafe version ofms_leaf_pages().
-
nms_overflow_pages
public static long nms_overflow_pages(long struct)
Unsafe version ofms_overflow_pages().
-
nms_entries
public static long nms_entries(long struct)
Unsafe version ofms_entries().
-
-