public class ShuffleReader extends Object implements org.apache.hadoop.mapred.RawKeyValueIterator
Constructor and Description |
---|
ShuffleReader(KeyValueSorter<?,?> sorter,
org.apache.hadoop.util.Progress progress)
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
void |
close() |
org.apache.hadoop.io.DataInputBuffer |
getKey() |
org.apache.hadoop.util.Progress |
getProgress() |
org.apache.hadoop.io.DataInputBuffer |
getValue() |
boolean |
next() |
public ShuffleReader(KeyValueSorter<?,?> sorter, org.apache.hadoop.util.Progress progress)
sorter
- the source sorterprogress
- the progresspublic boolean next() throws IOException
next
in interface org.apache.hadoop.mapred.RawKeyValueIterator
IOException
public org.apache.hadoop.io.DataInputBuffer getKey() throws IOException
getKey
in interface org.apache.hadoop.mapred.RawKeyValueIterator
IOException
public org.apache.hadoop.io.DataInputBuffer getValue() throws IOException
getValue
in interface org.apache.hadoop.mapred.RawKeyValueIterator
IOException
public void close() throws IOException
close
in interface org.apache.hadoop.mapred.RawKeyValueIterator
IOException
public org.apache.hadoop.util.Progress getProgress()
getProgress
in interface org.apache.hadoop.mapred.RawKeyValueIterator
Copyright © 2011–2019 Asakusa Framework Team. All rights reserved.