@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() |
float |
getProgress() |
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.InputFrameworkInterface
initialize
in class org.apache.tez.runtime.api.AbstractLogicalInput
IOException
public void start() throws IOException
IOException
public boolean isInputReady() throws IOException, InterruptedException, org.apache.tez.dag.api.TezException
InterruptedException
IOException
org.apache.tez.dag.api.TezException
public void waitForInputReady() throws IOException, InterruptedException, org.apache.tez.dag.api.TezException
IOException
InterruptedException
org.apache.tez.dag.api.TezException
public List<org.apache.tez.runtime.api.Event> close() throws IOException
IOException
public KeyValuesReader getReader() throws IOException, org.apache.tez.dag.api.TezException
{@link
- IOInterruptedException} if IO was performing a blocking operation and was interruptedIOException
org.apache.tez.dag.api.TezException
public float getProgress() throws org.apache.tez.runtime.api.ProgressFailedException, InterruptedException
getProgress
in class org.apache.tez.runtime.api.AbstractLogicalInput
org.apache.tez.runtime.api.ProgressFailedException
InterruptedException
public void handleEvents(List<org.apache.tez.runtime.api.Event> inputEvents) throws IOException
IOException
protected void createValuesIterator() throws IOException
IOException
public org.apache.hadoop.io.RawComparator getInputKeyComparator()
Copyright © 2024 Apache Software Foundation. All rights reserved.