|
||||||||||
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.CombinedEdgeValueType<VidType,VertexData,EdgeData>
public class CombinedEdgeValueType<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 edge records and supports commutative and associative add operation to merge with instances of the same type.
Constructor Summary | |
---|---|
CombinedEdgeValueType(GraphTypeFactory factory)
|
|
CombinedEdgeValueType(VidType source,
VidType target,
EdgeData data,
GraphTypeFactory factory)
Create an instance with one edge. |
Method Summary | |
---|---|
void |
add(CombinedEdgeValueType other)
Combines with other instance. |
void |
clear()
Clear the edges in the value. |
java.util.List<EdgeData> |
edata()
|
void |
readFields(java.io.DataInput in)
|
int |
size()
|
java.util.List<VidType> |
sources()
|
java.util.List<VidType> |
targets()
|
java.lang.String |
toString()
|
void |
write(java.io.DataOutput out)
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public CombinedEdgeValueType(GraphTypeFactory factory)
public CombinedEdgeValueType(VidType source, VidType target, EdgeData data, GraphTypeFactory factory)
source
- target
- data
- Method Detail |
---|
public void add(CombinedEdgeValueType other)
other
- public int size()
public void clear()
public java.util.List<VidType> sources()
public java.util.List<VidType> targets()
public java.util.List<EdgeData> edata()
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
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |