Constructor and Description |
---|
LouvainVertexWritable() |
LouvainVertexWritable(long weight,
Map<String,Long> edges) |
Modifier and Type | Method and Description |
---|---|
static LouvainVertexWritable |
fromTokens(String weight,
String edges) |
Map<String,Long> |
getEdges() |
long |
getWeight() |
void |
readFields(DataInput in) |
void |
setEdges(Map<String,Long> edges) |
void |
setWeight(long weight) |
void |
write(DataOutput out) |
public long getWeight()
public void setWeight(long weight)
public void readFields(DataInput in) throws IOException
readFields
in interface Writable
IOException
public void write(DataOutput out) throws IOException
write
in interface Writable
IOException
public static LouvainVertexWritable fromTokens(String weight, String edges)