de.hpi.fgis.voidgen.hadoop.closure
Class Step2Pair

java.lang.Object
  extended by de.hpi.fgis.voidgen.hadoop.datatypes.Pair<ClusterId,NodeXOrId>
      extended by de.hpi.fgis.voidgen.hadoop.closure.Step2Pair
All Implemented Interfaces:
java.lang.Comparable<Step2Pair>, org.apache.hadoop.io.Writable, org.apache.hadoop.io.WritableComparable<Step2Pair>

public class Step2Pair
extends Pair<ClusterId,NodeXOrId>
implements org.apache.hadoop.io.WritableComparable<Step2Pair>

A pair consisting of a cluster identifier and either a node or an other cluster id.

Author:
Johannes Gosda, Hasso Plattner Institute at University of Potsdam, Germany

Field Summary
 
Fields inherited from class de.hpi.fgis.voidgen.hadoop.datatypes.Pair
left, right
 
Constructor Summary
Step2Pair()
          Default constructor.
Step2Pair(ClusterId left, NodeXOrId right)
          Constructor with given left and right part of the pair.
 
Method Summary
 int compareTo(Step2Pair pair)
           
 boolean equals(java.lang.Object o)
           
 int hashCode()
           
 void readFields(java.io.DataInput arg0)
           
 void write(java.io.DataOutput arg0)
           
 
Methods inherited from class de.hpi.fgis.voidgen.hadoop.datatypes.Pair
getLeft, getRight, setLeft, setRight, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Step2Pair

public Step2Pair()
Default constructor.


Step2Pair

public Step2Pair(ClusterId left,
                 NodeXOrId right)
Constructor with given left and right part of the pair.

Parameters:
left - left part
right - right part
Method Detail

compareTo

public int compareTo(Step2Pair pair)
Specified by:
compareTo in interface java.lang.Comparable<Step2Pair>

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class Pair<ClusterId,NodeXOrId>

readFields

public void readFields(java.io.DataInput arg0)
                throws java.io.IOException
Specified by:
readFields in interface org.apache.hadoop.io.Writable
Throws:
java.io.IOException

write

public void write(java.io.DataOutput arg0)
           throws java.io.IOException
Specified by:
write in interface org.apache.hadoop.io.Writable
Throws:
java.io.IOException