|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgov.llnl.ontology.util.StringPair
public class StringPair
A pair of Strings that can be used as a key in map reduce jobs.
Field Summary | |
---|---|
String |
x
|
String |
y
|
Constructor Summary | |
---|---|
StringPair()
Constructs an empty StringPair for use with the WritableComparable interface. |
|
StringPair(String x,
String y)
Constructs a new StringPair . |
Method Summary | |
---|---|
int |
compareTo(Object o)
Compares this StringPair to another StringPair . |
int |
compareTo(StringPair w)
|
boolean |
equals(Object o)
|
static StringPair |
fromString(String text)
Returns a new StringPair from the contents of a string that has
been printed via toString() . |
int |
hashCode()
|
void |
readFields(DataInput in)
|
String |
toString()
|
void |
write(DataOutput out)
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public String x
public String y
Constructor Detail |
---|
public StringPair()
StringPair
for use with the WritableComparable
interface.
public StringPair(String x, String y)
StringPair
.
Method Detail |
---|
public int compareTo(Object o)
StringPair
to another StringPair
. Ordering
is based first on the x
value and then the y
if there is
a tie.
compareTo
in interface Comparable
public void write(DataOutput out) throws IOException
write
in interface org.apache.hadoop.io.Writable
IOException
public void readFields(DataInput in) throws IOException
readFields
in interface org.apache.hadoop.io.Writable
IOException
public int compareTo(StringPair w)
public boolean equals(Object o)
equals
in class Object
public int hashCode()
hashCode
in class Object
public static StringPair fromString(String text)
StringPair
from the contents of a string that has
been printed via toString()
.
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |