|
||||||||||
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.IngressValueType<VidType,VertexData,EdgeData>
VidType
- public abstract class IngressValueType<VidType extends org.apache.hadoop.io.WritableComparable<VidType>,VertexData extends org.apache.hadoop.io.Writable,EdgeData extends org.apache.hadoop.io.Writable>
An abstract class for map value templated with VidType, VertexData, and EdgeData. MapValue is a "union" type EdgeRecordType, and VertexRecordType. Both sub types are combinable with the same subtype.
Field Summary | |
---|---|
static short |
EDGEVALUE
Enums of the map key types. |
static short |
VRECORDVALUE
|
Constructor Summary | |
---|---|
IngressValueType()
|
Method Summary | |
---|---|
void |
clear()
Clear the edgevalue and vrecordvalue. |
CombinedEdgeValueType |
edgeValue()
|
short |
flag()
|
abstract GraphTypeFactory |
getGraphTypeFactory()
|
void |
initEdgeValue(short pid,
VidType source,
VidType target,
EdgeData edata)
Initialize the EdgeRecord value. |
void |
initVrecValue(VidType vid,
short pid,
int inEdges,
int outEdges)
Initialize as a VertexRecord value without vertex data. |
void |
initVrecValue(VidType vid,
VertexData vdata)
Initialize as a VertexRecord value with vdata. |
void |
readFields(java.io.DataInput in)
|
void |
reduce(short flag,
java.util.Iterator<IngressValueType<VidType,VertexData,EdgeData>> iter)
Reduce a list of values. |
CombinedVrecordValueType |
vrecordValue()
|
void |
write(java.io.DataOutput out)
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final short EDGEVALUE
public static final short VRECORDVALUE
Constructor Detail |
---|
public IngressValueType()
Method Detail |
---|
public abstract GraphTypeFactory getGraphTypeFactory()
public short flag()
public void reduce(short flag, java.util.Iterator<IngressValueType<VidType,VertexData,EdgeData>> iter)
flag
- iter
- public void initEdgeValue(short pid, VidType source, VidType target, EdgeData edata)
pid
- source
- target
- edata
- public void initVrecValue(VidType vid, short pid, int inEdges, int outEdges)
vid
- pid
- inEdges
- outEdges
- public void initVrecValue(VidType vid, VertexData vdata)
vid
- vdata
- public void clear()
public CombinedEdgeValueType edgeValue()
public CombinedVrecordValueType vrecordValue()
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 |