@InterfaceAudience.Private @InterfaceStability.Unstable public class Shuffle extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
Shuffle.ShuffleError |
| Constructor and Description |
|---|
Shuffle(org.apache.tez.runtime.api.InputContext inputContext,
org.apache.hadoop.conf.Configuration conf,
int numInputs,
long initialMemoryAvailable) |
| Modifier and Type | Method and Description |
|---|---|
static long |
getInitialMemoryRequirement(org.apache.hadoop.conf.Configuration conf,
long maxAvailableTaskMemory) |
void |
handleEvents(List<org.apache.tez.runtime.api.Event> events) |
boolean |
isInputReady()
Indicates whether the Shuffle and Merge processing is complete.
|
void |
reportException(Throwable t) |
void |
run() |
void |
shutdown() |
TezRawKeyValueIterator |
waitForInput()
Waits for the Shuffle and Merge to complete, and returns an iterator over the input.
|
public Shuffle(org.apache.tez.runtime.api.InputContext inputContext,
org.apache.hadoop.conf.Configuration conf,
int numInputs,
long initialMemoryAvailable)
throws IOException
IOExceptionpublic void handleEvents(List<org.apache.tez.runtime.api.Event> events) throws IOException
IOExceptionpublic boolean isInputReady()
throws IOException,
InterruptedException,
org.apache.tez.dag.api.TezException
InterruptedExceptionIOExceptionInputAlreadyClosedExceptionorg.apache.tez.dag.api.TezExceptionpublic TezRawKeyValueIterator waitForInput() throws IOException, InterruptedException, org.apache.tez.dag.api.TezException
IOExceptionInterruptedExceptionorg.apache.tez.dag.api.TezExceptionpublic void run()
throws IOException
IOExceptionpublic void shutdown()
@InterfaceAudience.Private public void reportException(Throwable t)
@InterfaceAudience.Private
public static long getInitialMemoryRequirement(org.apache.hadoop.conf.Configuration conf,
long maxAvailableTaskMemory)
Copyright © 2016 Apache Software Foundation. All rights reserved.