public class VanillaDb extends Object
init
before use. The
methods initFileMgr
,
initFileAndLogMgr
,
initTaskMgr
,
initTxMgr
,
initCatalogMgr
,
initStatMgr
, and
initCheckpointingTask
provide limited
initialization, and are useful for debugging purposes.Constructor and Description |
---|
VanillaDb() |
Modifier and Type | Method and Description |
---|---|
static CatalogMgr |
catalogMgr() |
static FileMgr |
fileMgr() |
static void |
init(String dirName)
Initializes the system.
|
static void |
init(String dirName,
StoredProcedureFactory factory)
Initializes the system.
|
static void |
initAndStartProfiler()
Initialize profiler and start collecting profiling data.
|
static void |
initCatalogMgr(boolean isNew,
Transaction tx)
Initializes the catalog manager.
|
static void |
initCheckpointingTask()
Initialize a background checkpointing task.
|
static void |
initFileAndLogMgr(String dirName)
Initializes the file and log managers.
|
static void |
initFileMgr(String dirName)
Initializes only the file manager.
|
static void |
initStatMgr(Transaction tx)
Initializes the statistics manager.
|
static void |
initTaskMgr()
Initializes the task manager.
|
static void |
initTxMgr()
Initializes the transaction manager.
|
static boolean |
isInited()
Is VanillaDB initialized ?
|
static LogMgr |
logMgr() |
static Planner |
newPlanner()
Creates a planner for SQL commands.
|
static StoredProcedureFactory |
spFactory() |
static StatMgr |
statMgr() |
static void |
stopProfilerAndReport()
Stop profiler and generate report file.
|
static TaskMgr |
taskMgr() |
static TransactionMgr |
txMgr() |
public static void init(String dirName)
dirName
- the name of the database directorypublic static void init(String dirName, StoredProcedureFactory factory)
dirName
- the name of the database directoryfactory
- the stored procedure factory for generating stored procedurespublic static boolean isInited()
public static void initFileMgr(String dirName)
dirName
- the name of the database directorypublic static void initFileAndLogMgr(String dirName)
dirName
- the name of the database directorypublic static void initTaskMgr()
public static void initTxMgr()
public static void initCatalogMgr(boolean isNew, Transaction tx)
isNew
- an indication of whether a new database needs to be created.tx
- the transaction performing the initializationpublic static void initStatMgr(Transaction tx)
tx
- the transaction performing the initializationpublic static void initCheckpointingTask()
public static FileMgr fileMgr()
public static LogMgr logMgr()
public static CatalogMgr catalogMgr()
public static StatMgr statMgr()
public static TaskMgr taskMgr()
public static TransactionMgr txMgr()
public static StoredProcedureFactory spFactory()
public static Planner newPlanner()
public static void initAndStartProfiler()
public static void stopProfilerAndReport()
Copyright © 2022 VanillaDB Organization. All rights reserved.