public class SccVertexValue extends Object implements org.apache.hadoop.io.Writable
Constructor and Description |
---|
SccVertexValue()
Public constructor required for serialization.
|
SccVertexValue(long value)
Constructor
|
Modifier and Type | Method and Description |
---|---|
void |
addParent(long vertexId)
Adds a vertex id to the list of parent vertices.
|
void |
clearParents()
Clear parents list.
|
void |
deactivate()
Remove this vertex from the computation.
|
long |
get()
Returns the vertex value.
|
it.unimi.dsi.fastutil.longs.LongArrayList |
getParents()
Returns the list of parent vertices, i.e., vertices that are at the other
end of incoming edges.
|
boolean |
isActive()
Indicates whether the vertex was removed in a Trimming phase.
|
void |
readFields(DataInput in) |
void |
set(long value)
Sets the vertex value.
|
String |
toString() |
void |
write(DataOutput out) |
public SccVertexValue()
public SccVertexValue(long value)
value
- Initial value for this vertex.public void readFields(DataInput in) throws IOException
readFields
in interface org.apache.hadoop.io.Writable
IOException
public void write(DataOutput out) throws IOException
write
in interface org.apache.hadoop.io.Writable
IOException
public it.unimi.dsi.fastutil.longs.LongArrayList getParents()
public void addParent(long vertexId)
vertexId
- It of the parent vertex.public void clearParents()
public void set(long value)
value
- Vertex value.public long get()
public void deactivate()
public boolean isActive()
Copyright © 2011-2020 The Apache Software Foundation. All Rights Reserved.