#include <graph_db.h>
◆ GraphDB()
◆ ~GraphDB()
gs::GraphDB::~GraphDB |
( |
| ) |
|
◆ Close()
void gs::GraphDB::Close |
( |
| ) |
|
Close the current opened graph.
◆ CreateApp()
AppWrapper gs::GraphDB::CreateApp |
( |
uint8_t |
app_type, |
|
|
int |
thread_id |
|
) |
| |
◆ get()
◆ get_vertex_property_column()
std::shared_ptr< ColumnBase > gs::GraphDB::get_vertex_property_column |
( |
uint8_t |
label, |
|
|
const std::string & |
col_name |
|
) |
| const |
◆ GetAppInfo()
void gs::GraphDB::GetAppInfo |
( |
Encoder & |
result | ) |
|
◆ getExecutedQueryNum()
size_t gs::GraphDB::getExecutedQueryNum |
( |
| ) |
const |
|
private |
◆ GetInsertTransaction()
Create a transaction to insert vertices and edges with a default allocator.
- Returns
- InsertTransaction
◆ GetLastCompactionTimestamp()
timestamp_t gs::GraphDB::GetLastCompactionTimestamp |
( |
| ) |
const |
◆ GetReadTransaction()
Create a transaction to read vertices and edges.
- Returns
- graph_dir The directory of graph data.
◆ GetSession() [1/2]
◆ GetSession() [2/2]
◆ GetSingleEdgeInsertTransaction()
Create a transaction to insert a single edge.
- Parameters
-
alloc | Allocator to allocate memory for graph. |
- Returns
◆ GetSingleVertexInsertTransaction()
◆ GetUpdateTransaction()
Create a transaction to update vertices and edges.
- Parameters
-
alloc | Allocator to allocate memory for graph. |
- Returns
- UpdateTransaction
◆ graph() [1/2]
◆ graph() [2/2]
◆ ingestWals()
void gs::GraphDB::ingestWals |
( |
const std::vector< std::string > & |
wals, |
|
|
const std::string & |
work_dir, |
|
|
int |
thread_num |
|
) |
| |
|
private |
◆ initApps()
void gs::GraphDB::initApps |
( |
const std::unordered_map< std::string, std::pair< std::string, uint8_t >> & |
plugins | ) |
|
|
private |
◆ Open() [1/2]
◆ Open() [2/2]
Result< bool > gs::GraphDB::Open |
( |
const Schema & |
schema, |
|
|
const std::string & |
data_dir, |
|
|
int32_t |
thread_num = 1 , |
|
|
bool |
warmup = false , |
|
|
bool |
memory_only = true , |
|
|
bool |
enable_auto_compaction = false |
|
) |
| |
Load the graph from data directory.
- Parameters
-
schema | The schema of graph. It should be the same as the schema, except that the procedure enable_lists changes. |
data_dir | The directory of graph data. |
thread_num | The number of threads for graph db concurrency |
warmup | Whether to warmup the graph db. |
◆ openWalAndCreateContexts()
void gs::GraphDB::openWalAndCreateContexts |
( |
const std::string & |
data_dir_path, |
|
|
MemoryStrategy |
allocator_strategy |
|
) |
| |
|
private |
◆ registerApp()
bool gs::GraphDB::registerApp |
( |
const std::string & |
path, |
|
|
uint8_t |
index = 0 |
|
) |
| |
|
private |
◆ schema()
const Schema & gs::GraphDB::schema |
( |
| ) |
const |
◆ SessionNum()
int gs::GraphDB::SessionNum |
( |
| ) |
const |
◆ showAppMetrics()
void gs::GraphDB::showAppMetrics |
( |
| ) |
const |
|
private |
◆ UpdateCompactionTimestamp()
void gs::GraphDB::UpdateCompactionTimestamp |
( |
timestamp_t |
ts | ) |
|
◆ GraphDBSession
◆ app_factories_
std::array<std::shared_ptr<AppFactoryBase>, 256> gs::GraphDB::app_factories_ |
|
private |
◆ app_paths_
std::array<std::string, 256> gs::GraphDB::app_paths_ |
|
private |
◆ compact_thread_
std::thread gs::GraphDB::compact_thread_ |
|
private |
◆ compact_thread_running_
bool gs::GraphDB::compact_thread_running_ = false |
|
private |
◆ contexts_
◆ graph_
◆ last_compaction_ts_
◆ monitor_thread_
std::thread gs::GraphDB::monitor_thread_ |
|
private |
◆ monitor_thread_running_
bool gs::GraphDB::monitor_thread_running_ |
|
private |
◆ thread_num_
int gs::GraphDB::thread_num_ |
|
private |
◆ version_manager_
◆ work_dir_
std::string gs::GraphDB::work_dir_ |
|
private |
The documentation for this class was generated from the following files:
- /home/runner/work/GraphScope/GraphScope/flex/engines/graph_db/database/graph_db.h
- /home/runner/work/GraphScope/GraphScope/flex/engines/graph_db/database/graph_db.cc