|
Flex
0.17.9
|
#include <loading_config.h>

Public Types | |
| using | schema_label_type = Schema::label_type |
| using | edge_triplet_type = std::tuple< schema_label_type, schema_label_type, schema_label_type > |
Public Member Functions | |
| LoadingConfig (const Schema &schema) | |
| LoadingConfig (const Schema &schema, const std::string &data_source, const std::string &delimiter, const BulkLoadMethod &method, const std::string &format) | |
| Status | AddVertexSources (const std::string &label, const std::string &file_path) |
| Status | AddEdgeSources (const std::string &src_label, const std::string &dst_label, const std::string &edge_label, size_t src_pri_key_ind, size_t dst_pri_key_ind, const std::string &file_path) |
| void | SetScheme (const std::string &data_source) |
| void | SetDelimiter (const char &delimiter) |
| void | SetMethod (const BulkLoadMethod &method) |
| const std::string & | GetScheme () const |
| const std::string & | GetDelimiter () const |
| const BulkLoadMethod & | GetMethod () const |
| const std::string & | GetFormat () const |
| bool | GetHasHeaderRow () const |
| char | GetEscapeChar () const |
| bool | GetIsEscaping () const |
| char | GetQuotingChar () const |
| bool | GetIsQuoting () const |
| bool | GetIsDoubleQuoting () const |
| const std::vector< std::string > & | GetNullValues () const |
| int32_t | GetBatchSize () const |
| bool | GetIsBatchReader () const |
| std::string | GetMetaData (const std::string &key) const |
| const std::unordered_map< schema_label_type, std::vector< std::string > > & | GetVertexLoadingMeta () const |
| const std::unordered_map< edge_triplet_type, std::vector< std::string >, boost::hash< edge_triplet_type > > & | GetEdgeLoadingMeta () const |
| const std::vector< std::tuple< size_t, std::string, std::string > > & | GetVertexColumnMappings (label_t label_id) const |
| const std::vector< std::tuple< size_t, std::string, std::string > > & | GetEdgeColumnMappings (label_t src_label_id, label_t dst_label_id, label_t edge_label_id) const |
| const std::pair< std::vector< std::pair< std::string, size_t > >, std::vector< std::pair< std::string, size_t > > > & | GetEdgeSrcDstCol (label_t src_label_id, label_t dst_label_id, label_t edge_label_id) const |
| void | SetParallelism (int32_t parallelism) |
| void | SetBuildCsrInMem (bool build_csr_in_mem) |
| void | SetUseMmapVector (bool use_mmap_vector) |
| int32_t | GetParallelism () const |
| bool | GetBuildCsrInMem () const |
| bool | GetUseMmapVector () const |
Static Public Member Functions | |
| static gs::Result< LoadingConfig > | ParseFromYamlFile (const Schema &schema, const std::string &yaml_file) |
| static gs::Result< LoadingConfig > | ParseFromYamlNode (const Schema &schema, const YAML::Node &yaml_node) |
Private Attributes | |
| const Schema & | schema_ |
| std::string | scheme_ |
| BulkLoadMethod | method_ |
| std::string | format_ |
| int32_t | parallelism_ |
| bool | build_csr_in_mem_ |
| bool | use_mmap_vector_ |
| std::vector< std::string > | null_values_ |
| std::unordered_map< std::string, std::string > | metadata_ |
| std::unordered_map< schema_label_type, std::vector< std::string > > | vertex_loading_meta_ |
| std::unordered_map< schema_label_type, std::vector< std::tuple< size_t, std::string, std::string > > > | vertex_column_mappings_ |
| std::unordered_map< edge_triplet_type, std::vector< std::string >, boost::hash< edge_triplet_type > > | edge_loading_meta_ |
| std::unordered_map< edge_triplet_type, std::vector< std::tuple< size_t, std::string, std::string > >, boost::hash< edge_triplet_type > > | edge_column_mappings_ |
| std::unordered_map< edge_triplet_type, std::pair< std::vector< std::pair< std::string, size_t > >, std::vector< std::pair< std::string, size_t > > >, boost::hash< edge_triplet_type > > | edge_src_dst_col_ |
Friends | |
| Status | config_parsing::parse_bulk_load_config_file (const std::string &config_file, const Schema &schema, LoadingConfig &load_config) |
| Status | config_parsing::parse_bulk_load_config_yaml (const YAML::Node &root, const Schema &schema, LoadingConfig &load_config) |
| using gs::LoadingConfig::edge_triplet_type = std::tuple<schema_label_type, schema_label_type, schema_label_type> |
| gs::LoadingConfig::LoadingConfig | ( | const Schema & | schema | ) |
| gs::LoadingConfig::LoadingConfig | ( | const Schema & | schema, |
| const std::string & | data_source, | ||
| const std::string & | delimiter, | ||
| const BulkLoadMethod & | method, | ||
| const std::string & | format | ||
| ) |
| Status gs::LoadingConfig::AddEdgeSources | ( | const std::string & | src_label, |
| const std::string & | dst_label, | ||
| const std::string & | edge_label, | ||
| size_t | src_pri_key_ind, | ||
| size_t | dst_pri_key_ind, | ||
| const std::string & | file_path | ||
| ) |
| Status gs::LoadingConfig::AddVertexSources | ( | const std::string & | label, |
| const std::string & | file_path | ||
| ) |
| int32_t gs::LoadingConfig::GetBatchSize | ( | ) | const |
|
inline |
| const std::string & gs::LoadingConfig::GetDelimiter | ( | ) | const |
| const std::vector< std::tuple< size_t, std::string, std::string > > & gs::LoadingConfig::GetEdgeColumnMappings | ( | label_t | src_label_id, |
| label_t | dst_label_id, | ||
| label_t | edge_label_id | ||
| ) | const |
| const std::unordered_map< LoadingConfig::edge_triplet_type, std::vector< std::string >, boost::hash< LoadingConfig::edge_triplet_type > > & gs::LoadingConfig::GetEdgeLoadingMeta | ( | ) | const |
| const std::pair< std::vector< std::pair< std::string, size_t > >, std::vector< std::pair< std::string, size_t > > > & gs::LoadingConfig::GetEdgeSrcDstCol | ( | label_t | src_label_id, |
| label_t | dst_label_id, | ||
| label_t | edge_label_id | ||
| ) | const |
| char gs::LoadingConfig::GetEscapeChar | ( | ) | const |
| const std::string & gs::LoadingConfig::GetFormat | ( | ) | const |
| bool gs::LoadingConfig::GetHasHeaderRow | ( | ) | const |
| bool gs::LoadingConfig::GetIsBatchReader | ( | ) | const |
| bool gs::LoadingConfig::GetIsDoubleQuoting | ( | ) | const |
| bool gs::LoadingConfig::GetIsEscaping | ( | ) | const |
| bool gs::LoadingConfig::GetIsQuoting | ( | ) | const |
| std::string gs::LoadingConfig::GetMetaData | ( | const std::string & | key | ) | const |
| const BulkLoadMethod & gs::LoadingConfig::GetMethod | ( | ) | const |
| const std::vector< std::string > & gs::LoadingConfig::GetNullValues | ( | ) | const |
|
inline |
| char gs::LoadingConfig::GetQuotingChar | ( | ) | const |
| const std::string & gs::LoadingConfig::GetScheme | ( | ) | const |
|
inline |
| const std::vector< std::tuple< size_t, std::string, std::string > > & gs::LoadingConfig::GetVertexColumnMappings | ( | label_t | label_id | ) | const |
| const std::unordered_map< LoadingConfig::schema_label_type, std::vector< std::string > > & gs::LoadingConfig::GetVertexLoadingMeta | ( | ) | const |
|
static |
|
static |
|
inline |
| void gs::LoadingConfig::SetDelimiter | ( | const char & | delimiter | ) |
| void gs::LoadingConfig::SetMethod | ( | const BulkLoadMethod & | method | ) |
|
inline |
| void gs::LoadingConfig::SetScheme | ( | const std::string & | data_source | ) |
|
inline |
|
friend |
|
friend |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
1.8.17