de.hpi.fgis.voidgen.hadoop.closure
Class Step2Pair
java.lang.Object
de.hpi.fgis.voidgen.hadoop.datatypes.Pair<ClusterId,NodeXOrId>
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
Fields inherited from class de.hpi.fgis.voidgen.hadoop.datatypes.Pair |
left, right |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
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 partright
- right part
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