Stores the locations of edge-partition join sites for each vertex attribute in a particular vertex partition.
怎么翻譯?
現在把原始碼貼出來如下:
/**
* Stores the locations of 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]
class RoutingTablePartition(
private val routingTable: Array[(Array[VertexId], BitSet, BitSet)]) extends Serializable {
/** The maximum number of edge partitions this `RoutingTablePartition` is built to join with. */
val numEdgePartitions: Int = routingTable.size
/** Returns the number of vertices 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)
uj5u.com熱心網友回復:
就是一個路由表項的組成。頂點ID,磁區號i,j......uj5u.com熱心網友回復:
能否給出完整的翻譯?我理解的是頂點按照取模等隨機方式分到某個號(該號代表行號或列號,根據方向確定屬于哪個),比如分為3行3列,共9個區,假如一個邊的兩點中,起始點分到2,終止點去到0,那么就磁區就是(2,0),就是第四個磁區。但是這句英文怎么來翻譯呢?轉載請註明出處,本文鏈接:https://www.uj5u.com/qita/79998.html
標籤:Spark
