de.hpi.fgis.voidgen.hadoop.datatypes
Class StringIntPair
java.lang.Object
de.hpi.fgis.voidgen.hadoop.datatypes.Pair<java.lang.String,java.lang.Integer>
de.hpi.fgis.voidgen.hadoop.datatypes.StringIntPair
- All Implemented Interfaces:
- java.lang.Comparable<StringIntPair>, org.apache.hadoop.io.Writable, org.apache.hadoop.io.WritableComparable<StringIntPair>
public class StringIntPair
- extends Pair<java.lang.String,java.lang.Integer>
- implements org.apache.hadoop.io.WritableComparable<StringIntPair>
A pair of a String and an Integer.
- Author:
- Dandy Fenz, Hasso Plattner Institute at University of Potsdam, Germany, Matthias Pohl, Hasso Plattner Institute at University of Potsdam, Germany, Johannes Gosda, Hasso Plattner Institute at University of Potsdam, Germany
Fields inherited from class de.hpi.fgis.voidgen.hadoop.datatypes.Pair |
left, right |
Constructor Summary |
StringIntPair()
Default Constructor. |
StringIntPair(java.lang.String strVal,
int intVal)
Constructor for creation of a pair with given values. |
Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
StringIntPair
public StringIntPair()
- Default Constructor.
StringIntPair
public StringIntPair(java.lang.String strVal,
int intVal)
- Constructor for creation of a pair with given values.
- Parameters:
strVal
- The left value.intVal
- The right value.
readFields
public void readFields(java.io.DataInput in)
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 out)
throws java.io.IOException
- Specified by:
write
in interface org.apache.hadoop.io.Writable
- Throws:
java.io.IOException
set
public void set(java.lang.String left,
int right)
- Method for setting the values of this pair.
- Parameters:
left
- The left value.right
- The right value.
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in class java.lang.Object
compareTo
public int compareTo(StringIntPair pair)
- Specified by:
compareTo
in interface java.lang.Comparable<StringIntPair>
hashCode
public int hashCode()
- Overrides:
hashCode
in class Pair<java.lang.String,java.lang.Integer>
toString
public java.lang.String toString()
- Overrides:
toString
in class Pair<java.lang.String,java.lang.Integer>
clone
public StringIntPair clone()
- Overrides:
clone
in class java.lang.Object