hadoop-common-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Owen O'Malley (JIRA)" <j...@apache.org>
Subject [jira] Commented: (HADOOP-611) SequenceFile.Sorter should have a merge method that returns an iterator
Date Wed, 18 Oct 2006 06:28:38 GMT
    [ http://issues.apache.org/jira/browse/HADOOP-611?page=comments#action_12443178 ] 
            
Owen O'Malley commented on HADOOP-611:
--------------------------------------

I think the interface should look like:

public interface KeyValueIterator<Key extends Writable, Value extends Writable> {
  boolean next(Key key, Value value);
}

and in SequenceFile.Sorter:

<Key extends WritableComparable, Value extends Writable> KeyValueIterator<Key,Value>
merge(File[] inFiles, boolean deleteInput) throws IOException {...}

which merges the list of files into an iterator.

> 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

        

Mime
View raw message