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.Member documentation
ms_psize– Size of a database page. This is currently the same for all databases.ms_depth– Depth (height) of the B-tree.ms_branch_pages– Number of internal (non-leaf) pages.ms_leaf_pages– Number of leaf pages.ms_overflow_pages– Number of overflow pages.ms_entries– Number of data items.
Layout
struct MDB_stat { unsigned int ms_psize; unsigned int ms_depth; mdb_size_t ms_branch_pages; mdb_size_t ms_leaf_pages; mdb_size_t ms_overflow_pages; mdb_size_t ms_entries; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class and Description static classMDBStat.BufferAn array ofMDBStatstructs.
-
Field Summary
Fields Modifier and Type Field and Description static intSIZEOFThe struct size in bytes.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method and Description static MDBStatcalloc()Returns a newMDBStatinstance allocated withmemCalloc.static MDBStat.Buffercalloc(int capacity)Returns a newMDBStat.Bufferinstance allocated withmemCalloc.static MDBStatcallocStack()Returns a newMDBStatinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static MDBStat.BuffercallocStack(int capacity)Returns a newMDBStat.Bufferinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static MDBStat.BuffercallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newMDBStat.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static MDBStatcallocStack(org.lwjgl.system.MemoryStack stack)Returns a newMDBStatinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static MDBStatcreate()Returns a newMDBStatinstance allocated withBufferUtils.static MDBStat.Buffercreate(int capacity)Returns a newMDBStat.Bufferinstance allocated withBufferUtils.static MDBStatcreate(long address)static MDBStat.Buffercreate(long address, int capacity)Create aMDBStat.Bufferinstance at the specified memory.static MDBStatmalloc()Returns a newMDBStatinstance allocated withmemAlloc.static MDBStat.Buffermalloc(int capacity)Returns a newMDBStat.Bufferinstance allocated withmemAlloc.static MDBStatmallocStack()Returns a newMDBStatinstance allocated on the thread-localMemoryStack.static MDBStat.BuffermallocStack(int capacity)Returns a newMDBStat.Bufferinstance allocated on the thread-localMemoryStack.static MDBStat.BuffermallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newMDBStat.Bufferinstance allocated on the specifiedMemoryStack.static MDBStatmallocStack(org.lwjgl.system.MemoryStack stack)Returns a newMDBStatinstance allocated on the specifiedMemoryStack.longms_branch_pages()Returns the value of thems_branch_pagesfield.intms_depth()Returns the value of thems_depthfield.longms_entries()Returns the value of thems_entriesfield.longms_leaf_pages()Returns the value of thems_leaf_pagesfield.longms_overflow_pages()Returns the value of thems_overflow_pagesfield.intms_psize()Returns the value of thems_psizefield.intsizeof()Returns thesizeof(struct).
-
-
-
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()
Description copied from class:org.lwjgl.system.StructReturns thesizeof(struct).- Specified by:
sizeofin classorg.lwjgl.system.Struct
-
ms_psize
public int ms_psize()
Returns the value of thems_psizefield.
-
ms_depth
public int ms_depth()
Returns the value of thems_depthfield.
-
ms_branch_pages
public long ms_branch_pages()
Returns the value of thems_branch_pagesfield.
-
ms_leaf_pages
public long ms_leaf_pages()
Returns the value of thems_leaf_pagesfield.
-
ms_overflow_pages
public long ms_overflow_pages()
Returns the value of thems_overflow_pagesfield.
-
ms_entries
public long ms_entries()
Returns the value of thems_entriesfield.
-
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(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
-
mallocStack
public static MDBStat mallocStack()
Returns a newMDBStatinstance allocated on the thread-localMemoryStack.
-
callocStack
public static MDBStat callocStack()
Returns a newMDBStatinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.
-
mallocStack
public static MDBStat mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newMDBStatinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
callocStack
public static MDBStat callocStack(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
-
mallocStack
public static MDBStat.Buffer mallocStack(int capacity)
Returns a newMDBStat.Bufferinstance allocated on the thread-localMemoryStack.- Parameters:
capacity- the buffer capacity
-
callocStack
public static MDBStat.Buffer callocStack(int capacity)
Returns a newMDBStat.Bufferinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacity
-
mallocStack
public static MDBStat.Buffer mallocStack(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
-
callocStack
public static MDBStat.Buffer callocStack(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
-
-