|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.umd.cloud9.io.pair.PairOfWritables<L,R>
public class PairOfWritables<L extends Writable,R extends Writable>
Class representing pair of Writables.
| Constructor Summary | |
|---|---|
PairOfWritables()
Creates a new PairOfWritables. |
|
PairOfWritables(L left,
R right)
Creates a new PairOfWritables. |
|
| Method Summary | |
|---|---|
L |
getKey()
Returns the key (left element). |
L |
getLeftElement()
Returns the left element. |
R |
getRightElement()
Returns the right element. |
R |
getValue()
Returns the value (right element). |
void |
readFields(DataInput in)
Deserializes the pair. |
void |
set(L left,
R right)
Sets the right and left elements of this pair. |
String |
toString()
Generates human-readable String representation of this pair. |
void |
write(DataOutput out)
Serializes this pair. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public PairOfWritables()
PairOfWritables.
public PairOfWritables(L left,
R right)
PairOfWritables.
| Method Detail |
|---|
public void readFields(DataInput in)
throws IOException
readFields in interface Writablein - source for raw byte representation
IOException
public void write(DataOutput out)
throws IOException
write in interface Writableout - where to write the raw byte representation
IOExceptionpublic L getLeftElement()
public R getRightElement()
public L getKey()
public R getValue()
public void set(L left,
R right)
left - the left elementright - the right elementpublic String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||