lhs = lhsStream.getNextElement();
rhs = rhsStream.getNextElement();
}
catch( IOException exception )
{
throw new CascadingException( "unable to read element from underlying stream", exception );
}
try
{
return comparator.compare( lhs, rhs );
}
catch( Exception exception )
{
throw new CascadingException( "unable to compare Tuples, likely a CoGroup is being attempted on fields of " +
"different types or custom comparators are incorrectly set on Fields, lhs: '" + lhs + "' rhs: '" + rhs + "'", exception );
}
}