Package com.kuzudb
Class Database
java.lang.Object
com.kuzudb.Database
The Database class is the main class of KuzuDB. It manages all database components.
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
Database
public Database()Creates a database object. The database will be created in memory with default settings. -
Database
Creates a database object.- Parameters:
databasePath
- : Database path. If the database does not already exist, it will be created.
-
Database
public Database(String databasePath, long bufferPoolSize, boolean enableCompression, boolean readOnly, long maxDBSize) Creates a database object.- Parameters:
databasePath
- : Database path. If the path is empty, or equal to `:memory:`, the database will be created in memory.bufferPoolSize
- : Max size of the buffer pool in bytes.enableCompression
- : Enable compression in storage.readOnly
- : Open the database in READ_ONLY mode.maxDBSize
- : The maximum size of the database in bytes. Note that this is introduced temporarily for now to get around with the default 8TB mmap address space limit some environment.
-
-
Method Details
-
finalize
Finalize.- Overrides:
finalize
in classObject
- Throws:
ObjectRefDestroyedException
- If the database instance has been destroyed.
-
destroy
Destroy the database instance.- Throws:
ObjectRefDestroyedException
- If the database instance has been destroyed.
-