V - Vertex valueE - Edge valuepublic class IntEdgeStore<V extends org.apache.hadoop.io.Writable,E extends org.apache.hadoop.io.Writable> extends AbstractEdgeStore<org.apache.hadoop.io.IntWritable,V,E,Integer,it.unimi.dsi.fastutil.ints.Int2ObjectMap.Entry<OutEdges<org.apache.hadoop.io.IntWritable,E>>>
configuration, PROGRESS_COUNTER, progressable, reuseEdgeObjects, service, transientEdges, useInputOutEdges| Constructor and Description |
|---|
IntEdgeStore(CentralizedServiceWorker<org.apache.hadoop.io.IntWritable,V,E> service,
ImmutableClassesGiraphConfiguration<org.apache.hadoop.io.IntWritable,V,E> configuration,
org.apache.hadoop.util.Progressable progressable)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected org.apache.hadoop.io.IntWritable |
createVertexId(it.unimi.dsi.fastutil.ints.Int2ObjectMap.Entry<OutEdges<org.apache.hadoop.io.IntWritable,E>> entry)
Create vertexId from a given key
|
protected it.unimi.dsi.fastutil.ints.Int2ObjectMap<OutEdges<org.apache.hadoop.io.IntWritable,E>> |
getPartitionEdges(int partitionId)
Get OutEdges for a given partition
|
protected OutEdges<org.apache.hadoop.io.IntWritable,E> |
getPartitionEdges(it.unimi.dsi.fastutil.ints.Int2ObjectMap.Entry<OutEdges<org.apache.hadoop.io.IntWritable,E>> entry)
Return the OutEdges for a given partition
|
protected Iterator<it.unimi.dsi.fastutil.ints.Int2ObjectMap.Entry<OutEdges<org.apache.hadoop.io.IntWritable,E>>> |
getPartitionEdgesIterator(Map<Integer,OutEdges<org.apache.hadoop.io.IntWritable,E>> partitionEdges)
Get iterator for partition edges
|
protected org.apache.hadoop.io.IntWritable |
getVertexId(it.unimi.dsi.fastutil.ints.Int2ObjectMap.Entry<OutEdges<org.apache.hadoop.io.IntWritable,E>> entry,
org.apache.hadoop.io.IntWritable representativeVertexId)
Get vertexId for a given key
|
protected OutEdges<org.apache.hadoop.io.IntWritable,E> |
getVertexOutEdges(VertexIdEdgeIterator<org.apache.hadoop.io.IntWritable,E> vertexIdEdgeIterator,
Map<Integer,OutEdges<org.apache.hadoop.io.IntWritable,E>> partitionEdgesIn)
Get out-edges for a given vertex
|
protected Integer |
readVertexKey(DataInput input)
Reads the given key from the input
|
protected void |
writeVertexKey(Integer key,
DataOutput output)
Writes the given key to the output
|
addPartitionEdges, hasEdgesForPartition, moveEdgesToVertices, readPartitionEdgeStore, writePartitionEdgeStoregetConf, setConfpublic IntEdgeStore(CentralizedServiceWorker<org.apache.hadoop.io.IntWritable,V,E> service, ImmutableClassesGiraphConfiguration<org.apache.hadoop.io.IntWritable,V,E> configuration, org.apache.hadoop.util.Progressable progressable)
service - Service workerconfiguration - Configurationprogressable - Progressableprotected org.apache.hadoop.io.IntWritable getVertexId(it.unimi.dsi.fastutil.ints.Int2ObjectMap.Entry<OutEdges<org.apache.hadoop.io.IntWritable,E>> entry, org.apache.hadoop.io.IntWritable representativeVertexId)
AbstractEdgeStoregetVertexId in class AbstractEdgeStore<org.apache.hadoop.io.IntWritable,V extends org.apache.hadoop.io.Writable,E extends org.apache.hadoop.io.Writable,Integer,it.unimi.dsi.fastutil.ints.Int2ObjectMap.Entry<OutEdges<org.apache.hadoop.io.IntWritable,E extends org.apache.hadoop.io.Writable>>>entry - for vertexId keyrepresentativeVertexId - representativeVertexIdprotected org.apache.hadoop.io.IntWritable createVertexId(it.unimi.dsi.fastutil.ints.Int2ObjectMap.Entry<OutEdges<org.apache.hadoop.io.IntWritable,E>> entry)
AbstractEdgeStorecreateVertexId in class AbstractEdgeStore<org.apache.hadoop.io.IntWritable,V extends org.apache.hadoop.io.Writable,E extends org.apache.hadoop.io.Writable,Integer,it.unimi.dsi.fastutil.ints.Int2ObjectMap.Entry<OutEdges<org.apache.hadoop.io.IntWritable,E extends org.apache.hadoop.io.Writable>>>entry - for vertexId keyprotected OutEdges<org.apache.hadoop.io.IntWritable,E> getPartitionEdges(it.unimi.dsi.fastutil.ints.Int2ObjectMap.Entry<OutEdges<org.apache.hadoop.io.IntWritable,E>> entry)
AbstractEdgeStoregetPartitionEdges in class AbstractEdgeStore<org.apache.hadoop.io.IntWritable,V extends org.apache.hadoop.io.Writable,E extends org.apache.hadoop.io.Writable,Integer,it.unimi.dsi.fastutil.ints.Int2ObjectMap.Entry<OutEdges<org.apache.hadoop.io.IntWritable,E extends org.apache.hadoop.io.Writable>>>entry - for vertexId keyprotected void writeVertexKey(Integer key, DataOutput output) throws IOException
AbstractEdgeStorewriteVertexKey in class AbstractEdgeStore<org.apache.hadoop.io.IntWritable,V extends org.apache.hadoop.io.Writable,E extends org.apache.hadoop.io.Writable,Integer,it.unimi.dsi.fastutil.ints.Int2ObjectMap.Entry<OutEdges<org.apache.hadoop.io.IntWritable,E extends org.apache.hadoop.io.Writable>>>key - input key to be writtenoutput - output to write the key toIOExceptionprotected Integer readVertexKey(DataInput input) throws IOException
AbstractEdgeStorereadVertexKey in class AbstractEdgeStore<org.apache.hadoop.io.IntWritable,V extends org.apache.hadoop.io.Writable,E extends org.apache.hadoop.io.Writable,Integer,it.unimi.dsi.fastutil.ints.Int2ObjectMap.Entry<OutEdges<org.apache.hadoop.io.IntWritable,E extends org.apache.hadoop.io.Writable>>>input - input to read the key fromIOExceptionprotected Iterator<it.unimi.dsi.fastutil.ints.Int2ObjectMap.Entry<OutEdges<org.apache.hadoop.io.IntWritable,E>>> getPartitionEdgesIterator(Map<Integer,OutEdges<org.apache.hadoop.io.IntWritable,E>> partitionEdges)
AbstractEdgeStoregetPartitionEdgesIterator in class AbstractEdgeStore<org.apache.hadoop.io.IntWritable,V extends org.apache.hadoop.io.Writable,E extends org.apache.hadoop.io.Writable,Integer,it.unimi.dsi.fastutil.ints.Int2ObjectMap.Entry<OutEdges<org.apache.hadoop.io.IntWritable,E extends org.apache.hadoop.io.Writable>>>partitionEdges - map of out-edges for vertices in a partitionprotected it.unimi.dsi.fastutil.ints.Int2ObjectMap<OutEdges<org.apache.hadoop.io.IntWritable,E>> getPartitionEdges(int partitionId)
AbstractEdgeStoregetPartitionEdges in class AbstractEdgeStore<org.apache.hadoop.io.IntWritable,V extends org.apache.hadoop.io.Writable,E extends org.apache.hadoop.io.Writable,Integer,it.unimi.dsi.fastutil.ints.Int2ObjectMap.Entry<OutEdges<org.apache.hadoop.io.IntWritable,E extends org.apache.hadoop.io.Writable>>>partitionId - id of partitionprotected OutEdges<org.apache.hadoop.io.IntWritable,E> getVertexOutEdges(VertexIdEdgeIterator<org.apache.hadoop.io.IntWritable,E> vertexIdEdgeIterator, Map<Integer,OutEdges<org.apache.hadoop.io.IntWritable,E>> partitionEdgesIn)
AbstractEdgeStoregetVertexOutEdges in class AbstractEdgeStore<org.apache.hadoop.io.IntWritable,V extends org.apache.hadoop.io.Writable,E extends org.apache.hadoop.io.Writable,Integer,it.unimi.dsi.fastutil.ints.Int2ObjectMap.Entry<OutEdges<org.apache.hadoop.io.IntWritable,E extends org.apache.hadoop.io.Writable>>>vertexIdEdgeIterator - vertex Id Edge iteratorpartitionEdgesIn - map of out-edges for vertices in a partitionCopyright © 2011-2020 The Apache Software Foundation. All Rights Reserved.