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

Tom White commented on MAPREDUCE-2226:
--------------------------------------

Can we mark all the other public methods of TaggedInputSplit as 
@InterfaceAudience.Private? Also do the same for the mapreduce API. It would 
also be a good idea to update the javadoc of MultipleInputs to mention the use 
case you are enabling. TaggedInputSplit should reference MultipleInputs in its 
javadoc too.

> TaggedInputSplit should be public
> ---------------------------------
>
>                 Key: MAPREDUCE-2226
>                 URL: https://issues.apache.org/jira/browse/MAPREDUCE-2226
>             Project: Hadoop Map/Reduce
>          Issue Type: Improvement
>    Affects Versions: 0.20.1
>            Reporter: E. Sammer
>            Assignee: E. Sammer
>         Attachments: MAPREDUCE-2226.diff
>
>
> Currently it's not possible to get at the original InputSplits when using 
> MultipleInputs. This is because TaggedInputSplit (used by 
> DelegatingInputFormat used by MultipleInputs) is not public. This means 
> things like the following do not work:
> {code}
> public void map(...) {
>   FileSplit fis = (FileSplit)((TaggedInputSplit) 
> reporter.getInputSplit()).getInputSplit();
>   Path p = fis.getPath();
> }
> {code}
> This prevents users from getting at input split specific data.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to