@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
IOException
public void handleEvents(List<org.apache.tez.runtime.api.Event> events) throws IOException
IOException
public boolean isInputReady() throws IOException, InterruptedException, org.apache.tez.dag.api.TezException
InterruptedException
IOException
InputAlreadyClosedException
org.apache.tez.dag.api.TezException
public TezRawKeyValueIterator waitForInput() throws IOException, InterruptedException, org.apache.tez.dag.api.TezException
IOException
InterruptedException
org.apache.tez.dag.api.TezException
public void run() throws IOException
IOException
public 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.