[ https://issues.apache.org/jira/browse/HBASE-20359?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16649682#comment-16649682 ]
Nick.han edited comment on HBASE-20359 at 10/15/18 3:20 AM: ------------------------------------------------------------ [~maoling] sorry,I reviewed this question,and it missed something,my bad,what I mean is class ByteArrayComparable and it's subclass LongComparator,BinaryComparator ...etc,ByteArrayComparable is not named well beacuse it's subclass is Comparator, a comparator is a tool,it's not right that a comparator extends a comparable. was (Author: nick.han): sorry,I reviewed this question,and it missed something,my bad,what I mean is class ByteArrayComparable and it's subclass LongComparator,BinaryComparator ...etc,ByteArrayComparable is not named well beacuse it's subclass is Comparator, a comparator is a tool,it's not right that a comparator extends a comparable. > why Comparator extends comparable? > ---------------------------------- > > Key: HBASE-20359 > URL: https://issues.apache.org/jira/browse/HBASE-20359 > Project: HBase > Issue Type: Improvement > Reporter: Nick.han > Priority: Minor > > Comparable is an interface,object implements this interface can be compare > with some other object, Comparator is a tool for compare object,the tool > itself can be compare is useless, so why a tool implement the comparable > interface?Do we have to improve this? -- This message was sent by Atlassian JIRA (v7.6.3#76005)