public class MiniCoordinateWritable
extends java.lang.Object
implements org.apache.hadoop.io.Writable
| Modifier and Type | Field and Description |
|---|---|
protected int |
component
The connected component index the vertex belongs to.
|
protected LongWritableSet |
oneEdges
A set containing the ids of its one degree neighbors.
|
protected float |
x
The vertex X coordinate.
|
protected float |
y
The vertex Y coordinate.
|
| Constructor and Description |
|---|
MiniCoordinateWritable() |
MiniCoordinateWritable(float x,
float y,
int component) |
MiniCoordinateWritable(float x,
float y,
org.json.JSONArray oEs,
int component) |
| Modifier and Type | Method and Description |
|---|---|
int |
getComponent() |
float[] |
getCoordinates() |
java.util.Iterator<org.apache.hadoop.io.LongWritable> |
getOneDegreeVertices()
Returns an iterator on the one degree neighbors ids of the vertex.
|
int |
getOneDegreeVerticesQuantity() |
void |
readFields(java.io.DataInput in) |
void |
setCoordinates(float x,
float y) |
void |
write(java.io.DataOutput out) |
protected int component
protected LongWritableSet oneEdges
protected float x
protected float y
public MiniCoordinateWritable()
public MiniCoordinateWritable(float x,
float y,
int component)
public MiniCoordinateWritable(float x,
float y,
org.json.JSONArray oEs,
int component)
throws org.json.JSONException
org.json.JSONExceptionpublic int getComponent()
public float[] getCoordinates()
public java.util.Iterator<org.apache.hadoop.io.LongWritable> getOneDegreeVertices()
public int getOneDegreeVerticesQuantity()
public void readFields(java.io.DataInput in)
throws java.io.IOException
readFields in interface org.apache.hadoop.io.Writablejava.io.IOExceptionpublic void setCoordinates(float x,
float y)
public void write(java.io.DataOutput out)
throws java.io.IOException
write in interface org.apache.hadoop.io.Writablejava.io.IOException