#include <graph_db_session.h>
◆ InputFormat
| Enumerator |
|---|
| kCppEncoder | |
| kCypherJson | |
| kCypherProtoAdhoc | |
| kCypherProtoProcedure | |
| kCypherString | |
◆ GraphDBSession()
| gs::GraphDBSession::GraphDBSession |
( |
GraphDB & |
db, |
|
|
Allocator & |
alloc, |
|
|
WalWriter & |
logger, |
|
|
const std::string & |
work_dir, |
|
|
int |
thread_id |
|
) |
| |
|
inline |
◆ ~GraphDBSession()
| gs::GraphDBSession::~GraphDBSession |
( |
| ) |
|
|
inline |
◆ BatchUpdate()
| bool gs::GraphDBSession::BatchUpdate |
( |
UpdateBatch & |
batch | ) |
|
◆ Compact()
| bool gs::GraphDBSession::Compact |
( |
| ) |
|
◆ db()
| const GraphDB & gs::GraphDBSession::db |
( |
| ) |
const |
◆ Eval()
| Result< std::vector< char > > gs::GraphDBSession::Eval |
( |
const std::string & |
input | ) |
|
◆ eval_duration()
| double gs::GraphDBSession::eval_duration |
( |
| ) |
const |
◆ get_vertex_id_column()
| std::shared_ptr< RefColumnBase > gs::GraphDBSession::get_vertex_id_column |
( |
uint8_t |
label | ) |
const |
◆ get_vertex_property_column()
| std::shared_ptr< ColumnBase > gs::GraphDBSession::get_vertex_property_column |
( |
uint8_t |
label, |
|
|
const std::string & |
col_name |
|
) |
| const |
◆ GetApp() [1/2]
| AppBase * gs::GraphDBSession::GetApp |
( |
const std::string & |
name | ) |
|
◆ GetApp() [2/2]
| AppBase * gs::GraphDBSession::GetApp |
( |
int |
idx | ) |
|
◆ GetAppInfo()
| void gs::GraphDBSession::GetAppInfo |
( |
Encoder & |
result | ) |
|
◆ GetAppMetric()
| const AppMetric & gs::GraphDBSession::GetAppMetric |
( |
int |
idx | ) |
const |
◆ GetCompactTransaction()
◆ GetInsertTransaction()
◆ GetReadTransaction()
◆ GetSingleEdgeInsertTransaction()
◆ GetSingleVertexInsertTransaction()
◆ GetUpdateTransaction()
◆ graph() [1/2]
◆ graph() [2/2]
◆ parse_query_type()
| Result<std::pair<uint8_t, std::string_view> > gs::GraphDBSession::parse_query_type |
( |
const std::string & |
input | ) |
|
|
inlineprivate |
Parse the input format of the query. There are four formats: 0. CppEncoder: This format will be used by interactive-sdk to submit c++ stored prcoedure queries. The second last byte is the query id.
- CypherJson: This format will be sended by interactive-sdk, the input is a json string + '\x01' { "query_name": "example", "arguments": { "value": 1, "type": { "primitive_type": "DT_SIGNED_INT32" } } }
- CypherInternalAdhoc: This format will be used by compiler to submit adhoc query, the input is a string + '\x02', the string is the path to the dynamic library.
- CypherInternalProcedure: This format will be used by compiler to submit procedure query, the input is a proto-encoded string + '\x03', the string is the path to the dynamic library.
- Parameters
-
- Returns
- The id of the query and a string_view which contains the real input of the query, discard the input format and query type.
◆ parse_query_type_from_cypher_internal()
| Result< std::pair< uint8_t, std::string_view > > gs::GraphDBSession::parse_query_type_from_cypher_internal |
( |
const std::string_view & |
input | ) |
|
|
private |
◆ parse_query_type_from_cypher_json()
| Result< std::pair< uint8_t, std::string_view > > gs::GraphDBSession::parse_query_type_from_cypher_json |
( |
const std::string_view & |
input | ) |
|
|
private |
◆ query_num()
| int64_t gs::GraphDBSession::query_num |
( |
| ) |
const |
◆ schema()
| const Schema & gs::GraphDBSession::schema |
( |
| ) |
const |
◆ SessionId()
| int gs::GraphDBSession::SessionId |
( |
| ) |
const |
◆ alloc_
◆ app_metrics_
◆ app_wrappers_
◆ apps_
◆ db_
◆ eval_duration_
| std::atomic<int64_t> gs::GraphDBSession::eval_duration_ |
|
private |
◆ kCppEncoderStr
| constexpr const char* gs::GraphDBSession::kCppEncoderStr = "\x00" |
|
staticconstexpr |
◆ kCypherJsonStr
| constexpr const char* gs::GraphDBSession::kCypherJsonStr = "\x01" |
|
staticconstexpr |
◆ kCypherProtoAdhocStr
| constexpr const char* gs::GraphDBSession::kCypherProtoAdhocStr = "\x02" |
|
staticconstexpr |
◆ kCypherProtoProcedureStr
| constexpr const char* gs::GraphDBSession::kCypherProtoProcedureStr = "\x03" |
|
staticconstexpr |
◆ logger_
◆ MAX_PLUGIN_NUM
| constexpr int32_t gs::GraphDBSession::MAX_PLUGIN_NUM = 256 |
|
staticconstexpr |
◆ MAX_RETRY
| constexpr int32_t gs::GraphDBSession::MAX_RETRY = 3 |
|
staticconstexpr |
◆ query_num_
| std::atomic<int64_t> gs::GraphDBSession::query_num_ |
|
private |
◆ thread_id_
| int gs::GraphDBSession::thread_id_ |
|
private |
◆ work_dir_
| std::string gs::GraphDBSession::work_dir_ |
|
private |
The documentation for this class was generated from the following files: