I - Vertex index valueV - Vertex valueE - Edge valuepublic class SendPartitionCache<I extends org.apache.hadoop.io.WritableComparable,V extends org.apache.hadoop.io.Writable,E extends org.apache.hadoop.io.Writable> extends SendDataCache<ExtendedDataOutput>
| Constructor and Description |
|---|
SendPartitionCache(ImmutableClassesGiraphConfiguration<I,V,E> conf,
CentralizedServiceWorker<?,?,?> serviceWorker)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
int |
addVertex(PartitionOwner partitionOwner,
Vertex<I,V,E> vertex)
Add a vertex to the cache.
|
getConf, getData, getInitialBufferSize, getNumWorkers, getSendWorkerInitialBufferSize, getServiceWorker, getWorkerPartitions, incrDataSize, removeAllData, removeWorkerData, setDatapublic SendPartitionCache(ImmutableClassesGiraphConfiguration<I,V,E> conf, CentralizedServiceWorker<?,?,?> serviceWorker)
conf - Giraph configurationserviceWorker - Service workerpublic int addVertex(PartitionOwner partitionOwner, Vertex<I,V,E> vertex)
partitionOwner - Partition owner of the vertexvertex - Vertex to addCopyright © 2011-2020 The Apache Software Foundation. All Rights Reserved.