|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.intel.hadoop.graphbuilder.partition.mapreduce.keyvalue.CombinedVrecordValueType<VidType,VertexData,EdgeData>
public class CombinedVrecordValueType<VidType extends org.apache.hadoop.io.WritableComparable<VidType>,VertexData extends org.apache.hadoop.io.Writable,EdgeData extends org.apache.hadoop.io.Writable>
Intermediate value type of vertex records and supports commutative and associative add operation through additvity of inEdges, outEdges and union of the mirror set.
Constructor Summary | |
---|---|
CombinedVrecordValueType(GraphTypeFactory factory)
Create an empty vertex record. |
|
CombinedVrecordValueType(VidType vid,
short pid,
int inEdges,
int outEdges,
GraphTypeFactory factory)
Creates a vertex record with vid, pid, inEdges and ouEdges. |
|
CombinedVrecordValueType(VidType vid,
VertexData vdata)
Creates a vertex record with vid and vdata. |
Method Summary | |
---|---|
void |
add(CombinedVrecordValueType<VidType,VertexData,EdgeData> other)
Combine with other VertexRecord value. |
void |
clear()
Clear this value. |
boolean |
hasVdata()
|
int |
inEdges()
|
int |
outEdges()
|
java.util.HashSet<java.lang.Short> |
pids()
|
void |
readFields(java.io.DataInput in)
|
VertexData |
vdata()
|
VidType |
vid()
|
void |
write(java.io.DataOutput out)
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CombinedVrecordValueType(GraphTypeFactory factory)
public CombinedVrecordValueType(VidType vid, short pid, int inEdges, int outEdges, GraphTypeFactory factory)
vid
- pid
- inEdges
- outEdges
- public CombinedVrecordValueType(VidType vid, VertexData vdata)
vid
- vdata
- Method Detail |
---|
public void add(CombinedVrecordValueType<VidType,VertexData,EdgeData> other)
other
- public VidType vid()
public int inEdges()
public int outEdges()
public boolean hasVdata()
public java.util.HashSet<java.lang.Short> pids()
public VertexData vdata()
public void clear()
public void readFields(java.io.DataInput in) throws java.io.IOException
readFields
in interface org.apache.hadoop.io.Writable
java.io.IOException
public void write(java.io.DataOutput out) throws java.io.IOException
write
in interface org.apache.hadoop.io.Writable
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |