|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object cascading.tuple.Tuple cascading.tuple.io.TuplePair
public class TuplePair
Class TuplePair is a utility class that is optimized to hold two Tuple instances for sorting and hashing of each part independently.
Field Summary |
---|
Fields inherited from class cascading.tuple.Tuple |
---|
elements, isUnmodifiable, NULL |
Constructor Summary | |
---|---|
TuplePair()
Constructor Tuple creates a new Tuple instance. |
|
TuplePair(Tuple lhs,
Tuple rhs)
Constructor TuplePair creates a new TuplePair instance. |
Method Summary | |
---|---|
int |
compareTo(Object other)
Method compareTo implements the Comparable.compareTo(Object) method. |
int |
compareTo(Tuple other)
Method compareTo compares this Tuple to the given Tuple instance. |
int |
compareTo(TuplePair tuplePair)
Method compareTo compares this instance to the given TuplePair. |
boolean |
equals(Object object)
|
Tuple |
getLhs()
Method getLhs returns the lhs of this TuplePair object. |
Tuple |
getRhs()
Method getRhs returns the rhs of this TuplePair object. |
int |
hashCode()
|
String |
print()
Method print returns a parsable String representation of this Tuple instance. |
String |
toString()
|
Methods inherited from class cascading.tuple.Tuple |
---|
add, add, addAll, addAll, addBoolean, addDouble, addFloat, addInteger, addLong, addShort, addString, append, clear, compareTo, elements, format, get, get, get, getBoolean, getChar, getDouble, getFloat, getInteger, getLong, getObject, getPos, getShort, getString, getTypes, internalSet, isEmpty, isUnmodifiable, iterator, leave, parse, printTo, put, remove, remove, set, set, set, setAll, setAll, setBoolean, setDouble, setFloat, setInteger, setLong, setShort, setString, size, size, size, toString, toString |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public TuplePair()
public TuplePair(Tuple lhs, Tuple rhs)
lhs
- of type Tuplerhs
- of type TupleMethod Detail |
---|
public Tuple getLhs()
public Tuple getRhs()
public boolean equals(Object object)
equals
in class Tuple
public int hashCode()
hashCode
in class Tuple
public int compareTo(Object other)
Tuple
Comparable.compareTo(Object)
method.
compareTo
in interface Comparable<Object>
compareTo
in class Tuple
other
- of type Object
public int compareTo(Tuple other)
Tuple
compareTo
in class Tuple
other
- of type Tuple
public int compareTo(TuplePair tuplePair)
tuplePair
- of type TuplePair
public String toString()
toString
in class Tuple
public String print()
Tuple
print
in class Tuple
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |