[ 
https://issues.apache.org/jira/browse/MAPREDUCE-5281?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13671722#comment-13671722
 ] 

Zhijie Shen commented on MAPREDUCE-5281:
----------------------------------------

As Counter becomes interface, there's no way to add the implemented methods. 
However, the four aforementioned methods must exist in the interface's 
implementations. boolean equals(Object) and int hashCode() comes from Object, 
while void readFields(DataInput) and void write(DataOutput) will be implemented 
as they are part of the interface (Counter extends Writable).
                
> Mapreduce API: Counter changes from non-abstract class to interface
> -------------------------------------------------------------------
>
>                 Key: MAPREDUCE-5281
>                 URL: https://issues.apache.org/jira/browse/MAPREDUCE-5281
>             Project: Hadoop Map/Reduce
>          Issue Type: Sub-task
>            Reporter: Zhijie Shen
>            Assignee: Zhijie Shen
>
> Therefore, significant changes in Counter:
> 1. Two Constructors are removed;
> 2. Following methods are removed:
> * boolean equals(Object)
> * int hashCode()
> * void readFields(DataInput)
> * void write(DataOutput)
> Fix of this issue may break 0.23.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to