[ 
http://issues.apache.org/jira/browse/HADOOP-611?page=comments#action_12443910 ] 
            
Owen O'Malley commented on HADOOP-611:
--------------------------------------

I forgot that we want these key/value pairs to stay "raw". So how about:

interface RawKeyValueIterator {
  DataOutputBuffer getKey();
  ValueBytes getValue();
  boolean next() throws IOException;
  long getTotalBytes();
}

With the other changes proposed in HADOOP-331, we should make the merge look 
like:

RawKeyValueIterator merge(List<RawKeyValueIterator> inputs) throws IOException;

The getTotalBytes can be used in the merge to decide which pieces should be 
merged first. See the discussion on HADOOP-591.

> SequenceFile.Sorter should have a merge method that returns an iterator
> -----------------------------------------------------------------------
>
>                 Key: HADOOP-611
>                 URL: http://issues.apache.org/jira/browse/HADOOP-611
>             Project: Hadoop
>          Issue Type: New Feature
>          Components: io
>            Reporter: Owen O'Malley
>         Assigned To: Devaraj Das
>             Fix For: 0.8.0
>
>
> SequenceFile.Sorter should get a new merge method that returns an iterator 
> over the keys/values.
> The current merge method should become a simple method that gets the iterator 
> and writes the records out to a file.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to