@InterfaceAudience.Public
public class OrderedGroupedKVInput
extends org.apache.tez.runtime.api.AbstractLogicalInput
OrderedGroupedKVInput in a AbstractLogicalInput which shuffles
intermediate sorted data, merges them and provides key/| Modifier and Type | Field and Description |
|---|---|
protected org.apache.hadoop.conf.Configuration |
conf |
protected MemoryUpdateCallbackHandler |
memoryUpdateCallbackHandler |
protected org.apache.tez.runtime.library.common.sort.impl.TezRawKeyValueIterator |
rawIter |
protected org.apache.tez.runtime.library.common.shuffle.orderedgrouped.Shuffle |
shuffle |
protected org.apache.tez.runtime.library.common.ValuesIterator |
vIter |
| Constructor and Description |
|---|
OrderedGroupedKVInput(org.apache.tez.runtime.api.InputContext inputContext,
int numPhysicalInputs) |
| Modifier and Type | Method and Description |
|---|---|
List<org.apache.tez.runtime.api.Event> |
close() |
protected void |
createValuesIterator() |
org.apache.hadoop.io.RawComparator |
getInputKeyComparator() |
KeyValuesReader |
getReader()
Get a KVReader for the Input.
|
void |
handleEvents(List<org.apache.tez.runtime.api.Event> inputEvents) |
List<org.apache.tez.runtime.api.Event> |
initialize() |
boolean |
isInputReady()
Check if the input is ready for consumption
|
void |
start() |
void |
waitForInputReady()
Waits for the input to become ready for consumption
|
protected org.apache.tez.runtime.library.common.sort.impl.TezRawKeyValueIterator rawIter
protected org.apache.hadoop.conf.Configuration conf
protected org.apache.tez.runtime.library.common.shuffle.orderedgrouped.Shuffle shuffle
protected MemoryUpdateCallbackHandler memoryUpdateCallbackHandler
protected org.apache.tez.runtime.library.common.ValuesIterator vIter
public OrderedGroupedKVInput(org.apache.tez.runtime.api.InputContext inputContext,
int numPhysicalInputs)
public List<org.apache.tez.runtime.api.Event> initialize() throws IOException
initialize in interface org.apache.tez.runtime.api.InputFrameworkInterfaceinitialize in class org.apache.tez.runtime.api.AbstractLogicalInputIOExceptionpublic void start()
throws IOException
IOExceptionpublic boolean isInputReady()
throws IOException,
InterruptedException,
org.apache.tez.dag.api.TezException
InterruptedExceptionIOExceptionorg.apache.tez.dag.api.TezExceptionpublic void waitForInputReady()
throws IOException,
InterruptedException,
org.apache.tez.dag.api.TezException
IOExceptionInterruptedExceptionorg.apache.tez.dag.api.TezExceptionpublic List<org.apache.tez.runtime.api.Event> close() throws IOException
IOExceptionpublic KeyValuesReader getReader() throws IOException, org.apache.tez.dag.api.TezException
IOExceptionorg.apache.tez.dag.api.TezExceptionpublic void handleEvents(List<org.apache.tez.runtime.api.Event> inputEvents) throws IOException
IOExceptionprotected void createValuesIterator()
throws IOException
IOExceptionpublic org.apache.hadoop.io.RawComparator getInputKeyComparator()
Copyright © 2015 Apache Software Foundation. All rights reserved.