I - Vertex index valueV - Vertex valueE - Edge valuepublic abstract class BasicPartition<I extends org.apache.hadoop.io.WritableComparable,V extends org.apache.hadoop.io.Writable,E extends org.apache.hadoop.io.Writable> extends Object implements Partition<I,V,E>
| Constructor and Description |
|---|
BasicPartition() |
| Modifier and Type | Method and Description |
|---|---|
void |
addPartitionVertices(VertexIterator<I,V,E> vertexIterator)
Add vertices to a partition.
|
ImmutableClassesGiraphConfiguration<I,V,E> |
getConf()
Return the configuration used by this object.
|
int |
getId()
Get the partition id.
|
VertexValueCombiner<V> |
getVertexValueCombiner() |
void |
initialize(int partitionId,
org.apache.hadoop.util.Progressable progressable)
Initialize the partition.
|
void |
progress()
Report progress.
|
void |
readFields(DataInput input) |
void |
setConf(ImmutableClassesGiraphConfiguration<I,V,E> configuration)
Set the configuration to be used by this object.
|
void |
setId(int id)
Set the partition id.
|
void |
setProgressable(org.apache.hadoop.util.Progressable progressable)
Set the context.
|
void |
write(DataOutput output) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddPartition, getEdgeCount, getVertex, getVertexCount, putOrCombine, putVertex, removeVertex, saveVertexforEach, iterator, spliteratorpublic void initialize(int partitionId,
org.apache.hadoop.util.Progressable progressable)
Partitioninitialize in interface Partition<I extends org.apache.hadoop.io.WritableComparable,V extends org.apache.hadoop.io.Writable,E extends org.apache.hadoop.io.Writable>partitionId - Partition idprogressable - Progressable to call progresspublic void setConf(ImmutableClassesGiraphConfiguration<I,V,E> configuration)
GiraphConfigurationSettablesetConf in interface GiraphConfigurationSettable<I extends org.apache.hadoop.io.WritableComparable,V extends org.apache.hadoop.io.Writable,E extends org.apache.hadoop.io.Writable>configuration - Set configurationpublic ImmutableClassesGiraphConfiguration<I,V,E> getConf()
ImmutableClassesGiraphConfigurablegetConf in interface ImmutableClassesGiraphConfigurable<I extends org.apache.hadoop.io.WritableComparable,V extends org.apache.hadoop.io.Writable,E extends org.apache.hadoop.io.Writable>public int getId()
Partitionpublic void setId(int id)
Partitionpublic void progress()
Partitionpublic void setProgressable(org.apache.hadoop.util.Progressable progressable)
PartitionsetProgressable in interface Partition<I extends org.apache.hadoop.io.WritableComparable,V extends org.apache.hadoop.io.Writable,E extends org.apache.hadoop.io.Writable>progressable - Progressablepublic VertexValueCombiner<V> getVertexValueCombiner()
public void addPartitionVertices(VertexIterator<I,V,E> vertexIterator)
PartitionaddPartitionVertices in interface Partition<I extends org.apache.hadoop.io.WritableComparable,V extends org.apache.hadoop.io.Writable,E extends org.apache.hadoop.io.Writable>vertexIterator - Vertices to addpublic void write(DataOutput output) throws IOException
write in interface org.apache.hadoop.io.WritableIOExceptionpublic void readFields(DataInput input) throws IOException
readFields in interface org.apache.hadoop.io.WritableIOExceptionCopyright © 2011-2020 The Apache Software Foundation. All Rights Reserved.