|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.intel.hadoop.graphbuilder.preprocess.mapreduce.keyvalue.PairListType<T1,T2>
T1
- T2
- public abstract class PairListType<T1 extends org.apache.hadoop.io.Writable,T2 extends org.apache.hadoop.io.Writable>
A general abstract class represents a list of pairs. Used as the intermediate
map output value type in EdgeTransformMR for holding a list of
VidType, EdgeData
pairs.
Constructor Summary | |
---|---|
PairListType()
Creates an empty value. |
Method Summary | |
---|---|
void |
add(T1 e1,
T2 e2)
Add a pair into the list. |
void |
append(PairListType<T1,T2> other)
Append the other list to the end. |
abstract T1 |
createLValue()
|
abstract T2 |
createRValue()
|
void |
init(T1 e1,
T2 e2)
Initialize the list with a pair. |
java.util.Iterator<Pair<T1,T2>> |
iterator()
|
java.util.List<T1> |
llist()
|
void |
readFields(java.io.DataInput in)
|
java.util.List<T2> |
rlist()
|
int |
size()
|
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 PairListType()
Method Detail |
---|
public abstract T1 createLValue()
public abstract T2 createRValue()
public int size()
public void add(T1 e1, T2 e2)
e1
- e2
- public void init(T1 e1, T2 e2)
e1
- e2
- public java.util.List<T1> llist()
public java.util.List<T2> rlist()
public void append(PairListType<T1,T2> other)
other
- public java.util.Iterator<Pair<T1,T2>> iterator()
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 |