Apache GraphAr C++ Library
The C++ Library for Apache GraphAr
Public Member Functions | List of all members
graphar::VertexChunkInfoWriter Class Reference

Public Member Functions

 VertexChunkInfoWriter (const std::shared_ptr< VertexInfo > &vertex_info, const std::string &prefix, const ValidateLevel &validate_level=ValidateLevel::no_validate)
 Copy a file as a vertex property group chunk. More...
 
Status WriteChunk (const std::string &file_name, const std::shared_ptr< PropertyGroup > &property_group, IdType chunk_index, ValidateLevel validate_level=ValidateLevel::no_validate) const
 

Detailed Description

Definition at line 31 of file chunk_info_writer.h.

Constructor & Destructor Documentation

◆ VertexChunkInfoWriter()

graphar::VertexChunkInfoWriter::VertexChunkInfoWriter ( const std::shared_ptr< VertexInfo > &  vertex_info,
const std::string &  prefix,
const ValidateLevel &  validate_level = ValidateLevel::no_validate 
)
explicit

Copy a file as a vertex property group chunk.

Parameters
file_nameThe file to copy.
property_groupThe property group.
chunk_indexThe index of the vertex chunk.
validate_levelThe validate level for this operation, which is the writer's validate level by default.
Returns
Status: ok or error.

Initialize the VertexChunkWriter.

Parameters
vertex_infoThe vertex info that describes the vertex type.
prefixThe absolute prefix.

Definition at line 29 of file chunk_info_writer.cc.


The documentation for this class was generated from the following files: