Constructor and Description |
---|
ShortestPathList()
Create a new shortest empty Path List
|
ShortestPathList(PathData data)
Create a new shortest path list based on a
shortest path message.
|
Modifier and Type | Method and Description |
---|---|
long |
getDistance() |
Map<String,Long> |
getPredecessorPathCountMap()
Gets the Predecessor Count Map.
|
long |
getShortestPathCount() |
void |
readFields(DataInput in) |
void |
setDistance(long distance)
Sets the distance from a source to this vertex.
|
void |
setPredecessorPathCountMap(Map<String,Long> predPathCountMap)
Sets the Predecessor Path Count Map.
|
boolean |
update(PathData data)
Update This shortest path list based on a new shortest path message
|
void |
write(DataOutput out) |
public ShortestPathList()
public ShortestPathList(PathData data)
data
- Path data to add to the map.public long getShortestPathCount()
public boolean update(PathData data)
data
- A new path data message.public void write(DataOutput out) throws IOException
write
in interface Writable
IOException
public void readFields(DataInput in) throws IOException
readFields
in interface Writable
IOException
public long getDistance()
public void setDistance(long distance)
distance
- The distance to set it to.public Map<String,Long> getPredecessorPathCountMap()