You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@tez.apache.org by "Tsuyoshi Ozawa (JIRA)" <ji...@apache.org> on 2016/06/27 18:26:52 UTC
[jira] [Commented] (TEZ-2608) UnorderedPartitionedKVWriter should
override write(Object key, Iterable
[ https://issues.apache.org/jira/browse/TEZ-2608?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15351533#comment-15351533 ]
Tsuyoshi Ozawa commented on TEZ-2608:
-------------------------------------
{quote}
Another useful bit to look at is whether the write(Key, Iterable<Values) API can be used in any of the actual writers. Currently it's only exercised by tests.
{quote}
Should we add an example?
> UnorderedPartitionedKVWriter should override write(Object key, Iterable<Object> values)
> ----------------------------------------------------------------------------------------
>
> Key: TEZ-2608
> URL: https://issues.apache.org/jira/browse/TEZ-2608
> Project: Apache Tez
> Issue Type: Bug
> Reporter: Tsuyoshi Ozawa
> Assignee: Tsuyoshi Ozawa
> Attachments: TEZ-2608.001.patch, TEZ-2608.002.patch
>
>
> From BaseUnorderedPartitionedKVWriter:
> {code}
> @Override
> public void write(Object key, Iterable<Object> values) throws IOException {
> //TODO: UnorderedPartitionedKVWriter should override this method later.
> Iterator<Object> it = values.iterator();
> while(it.hasNext()) {
> write(key, it.next());
> }
> }
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)