verify that whether "MyClass" is the implementing of WritableComparable or any other classes those supports WritableComparable. If not, make MyClass implementing it and try again.
@InterfaceAudience.Public
@InterfaceStability.Stable
public abstract class BinaryComparable
extends Object
implements Comparable<BinaryComparable>
Interface supported by WritableComparable
types supporting ordering/permutation by a representative set of bytes.
,
verify the super class of myclass and confirm that whether it is extended from any WritableComparable or any other class that support WritableComparable like Text.