|
Apache GraphAr C++ Library
The C++ Library for Apache GraphAr
|
#include <chunk_info_reader.h>
Public Member Functions | |
| VertexPropertyChunkInfoReader (const std::shared_ptr< VertexInfo > &vertex_info, const std::shared_ptr< PropertyGroup > &property_group, const std::string &prefix) | |
| Initialize the VertexPropertyChunkInfoReader. More... | |
| Status | seek (IdType id) |
| Sets chunk position indicator for reader by internal vertex id. If internal vertex id is not found, will return Status::IndexError error. After seeking to an invalid vertex id, the next call to GetChunk function may undefined, e.g. return an non exist path. More... | |
| Result< std::string > | GetChunk () const |
| Return the current chunk file path of chunk position indicator. | |
| Status | next_chunk () |
| IdType | GetChunkNum () const noexcept |
Static Public Member Functions | |
| static Result< std::shared_ptr< VertexPropertyChunkInfoReader > > | Make (const std::shared_ptr< VertexInfo > &vertex_info, const std::shared_ptr< PropertyGroup > &property_group, const std::string &prefix) |
| Create a VertexPropertyChunkInfoReader instance from vertex info. More... | |
| static Result< std::shared_ptr< VertexPropertyChunkInfoReader > > | Make (const std::shared_ptr< GraphInfo > &graph_info, const std::string &type, const std::shared_ptr< PropertyGroup > &property_group) |
| Create a VertexPropertyChunkInfoReader instance from graph info and property group. More... | |
| static Result< std::shared_ptr< VertexPropertyChunkInfoReader > > | Make (const std::shared_ptr< GraphInfo > &graph_info, const std::string &type, const std::string &property_name) |
| Create a VertexPropertyChunkInfoReader instance from graph info and property name. More... | |
The chunk info reader for vertex property group.
Definition at line 31 of file chunk_info_reader.h.
|
explicit |
Initialize the VertexPropertyChunkInfoReader.
| vertex_info | The vertex info that describes the vertex type. |
| property_group | The property group that describes the property group. |
| prefix | The absolute prefix of the graph. |
Definition at line 33 of file chunk_info_reader.cc.
|
inlinenoexcept |
Get the chunk number of the current vertex property group.
Definition at line 71 of file chunk_info_reader.h.
|
static |
Create a VertexPropertyChunkInfoReader instance from graph info and property group.
| graph_info | The graph info. |
| type | The vertex type. |
| property_group | The property group of the vertex property. |
Definition at line 87 of file chunk_info_reader.cc.
|
static |
Create a VertexPropertyChunkInfoReader instance from graph info and property name.
| graph_info | The graph info. |
| type | The vertex type. |
| property_name | The name of one property in the property group you want to read. |
Definition at line 98 of file chunk_info_reader.cc.
|
static |
Create a VertexPropertyChunkInfoReader instance from vertex info.
| vertex_info | The vertex info. |
| property_group | The property group of the vertex property. |
| prefix | The absolute prefix of the graph. |
Definition at line 78 of file chunk_info_reader.cc.
| Status graphar::VertexPropertyChunkInfoReader::next_chunk | ( | ) |
Sets chunk position indicator to next chunk.
if current chunk is the last chunk, will return Status::IndexError error.
Definition at line 68 of file chunk_info_reader.cc.
| Status graphar::VertexPropertyChunkInfoReader::seek | ( | IdType | id | ) |
Sets chunk position indicator for reader by internal vertex id. If internal vertex id is not found, will return Status::IndexError error. After seeking to an invalid vertex id, the next call to GetChunk function may undefined, e.g. return an non exist path.
| id | the internal vertex id. |
Definition at line 52 of file chunk_info_reader.cc.