[ 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