Home > other >  The Spark of figure calculation period of the translation
The Spark of figure calculation period of the translation

Time:09-27

Stores the locations of the edge - partition join sites for each vertex attribute in a particular vertex partition.
How to translate?


Now posted the source code is as follows:

/* ** Stores the locations of the edge - partition join sites for each vertex attribute in a particular 
* vertex partition. This provides routing information for shipping vertex attributes to edge
* partitions.
*/
Private [graphx]
The class RoutingTablePartition (
Private val routingTable: Array (Array [VertexId], BitSet, BitSet)]) extends the Serializable {
/* * The maximum number of edge partitions this ` RoutingTablePartition ` is built to join with. */
Val numEdgePartitions: Int=routingTable. Size

/* * Returns the number of are that will be sent to the specified edge partition. */
Def partitionSize (pid: PartitionID) : Int=routingTable (pid) _1. Size

/* * Returns an iterator over all vertex ids stored in this ` RoutingTablePartition `. */
Def iterator: iterator. [VertexId]=routingTable iterator. FlatMap (_) _1) iterator)




CodePudding user response:

Is composed of a routing table entries, vertex ID, partition number I, j...

CodePudding user response:

Can you give a complete translation? I understand is the vertex way according to the modulus of random number assigned to a (the number represents the row number and column number, according to the direction which belongs to), such as divided into 3 rows and columns, a total of nine area, if an edge points, the starting point to 2, the end point to 0, then the partition is (2, 0), is the fourth division, but how to translate this sentence in English?
  • Related