[
https://issues.apache.org/jira/browse/MAPREDUCE-5886?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13997045#comment-13997045
]
Chris Nauroth commented on MAPREDUCE-5886:
------------------------------------------
bq. I considered both {{Arrays#copyOfRange}} and {{List#subList}} but discarded
this due to creation of throwaway objects.
It's not too bad for {{ArrayList#subList}}. It retains the original array and
wraps it with different offset indices:
http://hg.openjdk.java.net/jdk6/jdk6/jdk/file/tip/src/share/classes/java/util/ArrayList.java#l891
You pay a flat cost for the extra indices and object overhead, but it's not a
full array reallocation.
> Allow wordcount example job to accept multiple input paths.
> -----------------------------------------------------------
>
> Key: MAPREDUCE-5886
> URL: https://issues.apache.org/jira/browse/MAPREDUCE-5886
> Project: Hadoop Map/Reduce
> Issue Type: Improvement
> Components: examples
> Affects Versions: 3.0.0, 2.4.0
> Reporter: Chris Nauroth
> Assignee: Chris Nauroth
> Priority: Minor
> Attachments: MAPREDUCE-5886.1.patch, MAPREDUCE-5886.2.patch,
> MAPREDUCE-5886.3.patch
>
>
> It would be convenient if the wordcount example MapReduce job could accept
> multiple input paths and run the word count on all of them.
--
This message was sent by Atlassian JIRA
(v6.2#6252)