@InterfaceAudience.Public
@InterfaceStability.Evolving
public abstract class KeyValueReader
extends org.apache.tez.runtime.api.Reader
Reader.
Example usage
while (kvReader.next()) {
Object key = kvReader.getCurrentKey();
Object value = kvReader.getCurrentValue();
| Constructor and Description |
|---|
KeyValueReader() |
| Modifier and Type | Method and Description |
|---|---|
abstract Object |
getCurrentKey()
Returns the current key
|
abstract Object |
getCurrentValue()
Returns the current value
|
abstract boolean |
next()
Moves to the next key/values(s) pair
|
public abstract boolean next()
throws IOException
IOException - if an error occurspublic abstract Object getCurrentKey() throws IOException
IOExceptionpublic abstract Object getCurrentValue() throws IOException
IOExceptionCopyright © 2015 Apache Software Foundation. All rights reserved.