Apache GraphAr C++ Library
The C++ Library for Apache GraphAr
|
#include <graph_info.h>
Public Member Functions | |
PropertyGroup (const std::vector< Property > &properties, FileType file_type, const std::string &prefix="") | |
const std::vector< Property > & | GetProperties () const |
bool | HasProperty (const std::string &property_name) const |
FileType | GetFileType () const |
const std::string & | GetPrefix () const |
bool | IsValidated () const |
Friends | |
std::ostream & | operator<< (std::ostream &stream, const PropertyGroup &pg) |
PropertyGroup is a class to store the property group information.
A property group is a collection of properties with a file type and prefix used for chunk files. The prefix is optional and is the concatenation of property names with '_' as separator by default.
Definition at line 59 of file graph_info.h.
|
explicit |
Initialize the PropertyGroup with a list of properties, file type, and optional prefix.
properties | Property list of the group |
file_type | File type of property group chunk file |
prefix | prefix of property group chunk file. The default prefix is the concatenation of property names with '_' as separator |
Definition at line 92 of file graph_info.cc.
|
inline |
Get the file type of property group chunk file.
Definition at line 86 of file graph_info.h.
|
inline |
Get the prefix of property group chunk file.
Definition at line 92 of file graph_info.h.
const std::vector< Property > & graphar::PropertyGroup::GetProperties | ( | ) | const |
Get the property list of group.
Definition at line 103 of file graph_info.cc.
bool graphar::PropertyGroup::IsValidated | ( | ) | const |
Check if the property group is validated.
Definition at line 116 of file graph_info.cc.