public class KeyValuesFromKeyValue extends Object implements KeyValuesAdapter
Modifier and Type | Field and Description |
---|---|
protected org.apache.tez.runtime.library.api.KeyValueReader |
reader |
protected org.apache.hadoop.hive.ql.exec.tez.KeyValuesFromKeyValue.ValueIterator<Object> |
valueIterator |
Constructor and Description |
---|
KeyValuesFromKeyValue(org.apache.tez.runtime.library.api.KeyValueReader reader) |
Modifier and Type | Method and Description |
---|---|
Object |
getCurrentKey()
Get the key for current record
|
Iterable<Object> |
getCurrentValues()
Get the values for the current record
|
boolean |
next()
Move to the next record
|
protected org.apache.tez.runtime.library.api.KeyValueReader reader
protected org.apache.hadoop.hive.ql.exec.tez.KeyValuesFromKeyValue.ValueIterator<Object> valueIterator
public KeyValuesFromKeyValue(org.apache.tez.runtime.library.api.KeyValueReader reader)
public Object getCurrentKey() throws IOException
KeyValuesAdapter
getCurrentKey
in interface KeyValuesAdapter
IOException
public Iterable<Object> getCurrentValues() throws IOException
KeyValuesAdapter
getCurrentValues
in interface KeyValuesAdapter
IOException
public boolean next() throws IOException
KeyValuesAdapter
next
in interface KeyValuesAdapter
IOException
Copyright © 2021 The Apache Software Foundation. All rights reserved.