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

Unordered By Destination EdgesCollection implementation. More...

#include <graph_reader.h>

Inheritance diagram for graphar::UBDEdgesCollection:
graphar::EdgesCollection

Public Member Functions

 UBDEdgesCollection (const std::shared_ptr< EdgeInfo > &edge_info, const std::string &prefix, IdType vertex_chunk_begin=0, IdType vertex_chunk_end=std::numeric_limits< int64_t >::max())
 Initialize the EdgesCollection with a range of chunks. More...
 
EdgeIter find_src (IdType id, const EdgeIter &from) override
 
EdgeIter find_dst (IdType id, const EdgeIter &from) override
 
- Public Member Functions inherited from graphar::EdgesCollection
virtual EdgeIter begin ()
 
virtual EdgeIter end ()
 
virtual size_t size () const noexcept
 

Additional Inherited Members

- Static Public Member Functions inherited from graphar::EdgesCollection
static Result< std::shared_ptr< EdgesCollection > > Make (const std::shared_ptr< GraphInfo > &graph_info, const std::string &src_label, const std::string &edge_label, const std::string &dst_label, AdjListType adj_list_type, const IdType vertex_chunk_begin=0, const IdType vertex_chunk_end=std::numeric_limits< int64_t >::max()) noexcept
 Construct an EdgesCollection from graph info and edge label. More...
 
- Protected Member Functions inherited from graphar::EdgesCollection
 EdgesCollection (const std::shared_ptr< EdgeInfo > &edge_info, const std::string &prefix, IdType vertex_chunk_begin, IdType vertex_chunk_end, AdjListType adj_list_type)
 Initialize the EdgesCollection with a range of chunks. More...
 
- Protected Attributes inherited from graphar::EdgesCollection
std::shared_ptr< EdgeInfoedge_info_
 
std::string prefix_
 
AdjListType adj_list_type_
 
IdType chunk_begin_
 
IdType chunk_end_
 
std::shared_ptr< util::IndexConverterindex_converter_
 
std::shared_ptr< EdgeIterbegin_
 
std::shared_ptr< EdgeIterend_
 
IdType edge_num_
 

Detailed Description

Unordered By Destination EdgesCollection implementation.

Definition at line 1034 of file graph_reader.h.

Constructor & Destructor Documentation

◆ UBDEdgesCollection()

graphar::UBDEdgesCollection::UBDEdgesCollection ( const std::shared_ptr< EdgeInfo > &  edge_info,
const std::string &  prefix,
IdType  vertex_chunk_begin = 0,
IdType  vertex_chunk_end = std::numeric_limits<int64_t>::max() 
)
inlineexplicit

Initialize the EdgesCollection with a range of chunks.

Parameters
edge_infoThe edge info that describes the edge type.
prefixThe absolute prefix.
vertex_chunk_beginThe index of the begin vertex chunk.
vertex_chunk_endThe index of the end vertex chunk (not included).

Definition at line 1046 of file graph_reader.h.

Member Function Documentation

◆ find_dst()

EdgeIter graphar::UBDEdgesCollection::find_dst ( IdType  id,
const EdgeIter from 
)
inlineoverridevirtual

Construct and return the iterator pointing to the first incoming edge of the vertex with specific id after the input iterator.

Parameters
idThe vertex id.
fromThe input iterator.
Returns
The new constructed iterator.

Implements graphar::EdgesCollection.

Definition at line 1082 of file graph_reader.h.

◆ find_src()

EdgeIter graphar::UBDEdgesCollection::find_src ( IdType  id,
const EdgeIter from 
)
inlineoverridevirtual

Construct and return the iterator pointing to the first out-going edge of the vertex with specific id after the input iterator.

Parameters
idThe vertex id.
fromThe input iterator.
Returns
The new constructed iterator.

Implements graphar::EdgesCollection.

Definition at line 1061 of file graph_reader.h.


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