@InterfaceAudience.Public
@InterfaceStability.Evolving
public abstract class KeyValuesReader
extends org.apache.tez.runtime.api.Reader
Reader.
Example usage
while (kvReader.next()) {
Object key = kvReader.getCurrentKey();
Iterable| Constructor and Description |
|---|
KeyValuesReader() |
| Modifier and Type | Method and Description |
|---|---|
abstract Object |
getCurrentKey()
Returns the current key
|
abstract Iterable<Object> |
getCurrentValues()
Returns an Iterable view of the values associated with the current key
|
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 Iterable<Object> getCurrentValues() throws IOException
IOExceptionCopyright © 2015 Apache Software Foundation. All rights reserved.