@InterfaceStability.Unstable @InterfaceAudience.Private public class UnorderedKVReader<K,V> extends KeyValueReader
completedProcessing| Constructor and Description |
|---|
UnorderedKVReader(ShuffleManager shuffleManager,
org.apache.hadoop.conf.Configuration conf,
org.apache.hadoop.io.compress.CompressionCodec codec,
boolean ifileReadAhead,
int ifileReadAheadLength,
int ifileBufferSize,
org.apache.tez.common.counters.TezCounter inputRecordCounter,
org.apache.tez.runtime.api.InputContext context) |
| Modifier and Type | Method and Description |
|---|---|
Object |
getCurrentKey()
Returns the current key
|
Object |
getCurrentValue()
Returns the current value
|
boolean |
next()
Moves to the next key/values(s) pair
|
IFile.Reader |
openIFileReader(FetchedInput fetchedInput) |
hasCompletedProcessingpublic UnorderedKVReader(ShuffleManager shuffleManager, org.apache.hadoop.conf.Configuration conf, org.apache.hadoop.io.compress.CompressionCodec codec, boolean ifileReadAhead, int ifileReadAheadLength, int ifileBufferSize, org.apache.tez.common.counters.TezCounter inputRecordCounter, org.apache.tez.runtime.api.InputContext context) throws IOException
IOExceptionpublic boolean next()
throws IOException
next in class KeyValueReaderIOException - if an error occurspublic Object getCurrentKey() throws IOException
KeyValueReadergetCurrentKey in class KeyValueReaderIOExceptionpublic Object getCurrentValue() throws IOException
KeyValueReadergetCurrentValue in class KeyValueReaderIOExceptionpublic IFile.Reader openIFileReader(FetchedInput fetchedInput) throws IOException
IOExceptionCopyright © 2016 Apache Software Foundation. All rights reserved.