GraphLab: Distributed Graph-Parallel API  2.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
graphlab::distributed_constrained_random_ingress< VertexData, EdgeData > Class Template Reference

Ingress object assigning edges using randoming hash function. More...

#include <graphlab/graph/ingress/distributed_constrained_random_ingress.hpp>

List of all members.

Public Types

typedef distributed_graph
< VertexData, EdgeData > 
graph_type
typedef VertexData vertex_data_type
 The type of the vertex data stored in the graph.
typedef EdgeData edge_data_type
 The type of the edge data stored in the graph.
typedef
distributed_ingress_base
< VertexData, EdgeData > 
base_type
typedef graph_type::vertex_record vertex_record
typedef graph_type::mirror_type mirror_type

Public Member Functions

 distributed_constrained_random_ingress (distributed_control &dc, graph_type &graph, const std::string &method)
void add_edge (vertex_id_type source, vertex_id_type target, const EdgeData &edata)
virtual void add_vertex (vertex_id_type vid, const VertexData &vdata)
 Add an vertex to the ingress object.
virtual void finalize ()
 Finalize completes the local graph data structure and the vertex record information.
void exchange_global_info ()

Public Attributes

sharding_constraint * constraint
boost::hash< vertex_id_typehashvid
dc_dist_object
< distributed_ingress_base > 
rpc
 The rpc interface for this object.
graph_typegraph
 The underlying distributed graph object that is being loaded.
buffered_exchange
< vertex_buffer_record
vertex_exchange
buffered_exchange
< edge_buffer_record
edge_exchange
ingress_edge_decision
< VertexData, EdgeData > 
edge_decision
 Ingress decision object for computing the edge destination.

Protected Member Functions

procid_t vertex_to_proc (const vertex_id_type vid) const
 Returns the random hashed pid of a vertex.

Detailed Description

template<typename VertexData, typename EdgeData>
class graphlab::distributed_constrained_random_ingress< VertexData, EdgeData >

Ingress object assigning edges using randoming hash function.

Definition at line 46 of file distributed_constrained_random_ingress.hpp.


Member Function Documentation

template<typename VertexData , typename EdgeData >
void graphlab::distributed_constrained_random_ingress< VertexData, EdgeData >::add_edge ( vertex_id_type  source,
vertex_id_type  target,
const EdgeData &  edata 
)
inlinevirtual

Add an edge to the ingress object using random assignment.

Implements graphlab::idistributed_ingress< VertexData, EdgeData >.

Definition at line 73 of file distributed_constrained_random_ingress.hpp.


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