@InterfaceAudience.Private public class MemoryDistributor extends Object
| Constructor and Description |
|---|
MemoryDistributor(int numTotalInputs,
int numTotalOutputs,
org.apache.hadoop.conf.Configuration conf) |
| Modifier and Type | Method and Description |
|---|---|
void |
makeInitialAllocations()
Used by the Tez framework to distribute initial memory after components
have made their initial requests.
|
void |
requestMemory(long requestSize,
org.apache.tez.runtime.api.MemoryUpdateCallback callback,
org.apache.tez.runtime.api.TaskContext taskContext,
org.apache.tez.dag.api.EntityDescriptor<?> descriptor)
Used by the Tez framework to request memory on behalf of user requests.
|
public MemoryDistributor(int numTotalInputs,
int numTotalOutputs,
org.apache.hadoop.conf.Configuration conf)
numTotalInputs - total number of Inputs for the tasknumTotalOutputs - total number of Outputs for the taskconf - Tez specific task configurationpublic void requestMemory(long requestSize,
org.apache.tez.runtime.api.MemoryUpdateCallback callback,
org.apache.tez.runtime.api.TaskContext taskContext,
org.apache.tez.dag.api.EntityDescriptor<?> descriptor)
public void makeInitialAllocations()
throws org.apache.tez.dag.api.TezException
org.apache.tez.dag.api.TezExceptionCopyright © 2016 Apache Software Foundation. All rights reserved.