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

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

public class Step1Pair
extends Pair<CloneableText,ClusterId>
implements org.apache.hadoop.io.WritableComparable<Step1Pair>

A pair of text and cluster identifier.

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
Step1Pair()
          Default Constructor.
Step1Pair(CloneableText left, ClusterId right)
          Constructor with given left and right part of the pair.
 
Method Summary
 int compareTo(Step1Pair o)
           
 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

Step1Pair

public Step1Pair()
Default Constructor.


Step1Pair

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

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

compareTo

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

equals

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

hashCode

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

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