org.apache.tez.runtime.common.resources
Interface InitialMemoryAllocator
- All Superinterfaces:
- org.apache.hadoop.conf.Configurable
@InterfaceAudience.Private
public interface InitialMemoryAllocator
- extends org.apache.hadoop.conf.Configurable
Used to balance memory requests before a task starts executing.
| Methods inherited from interface org.apache.hadoop.conf.Configurable |
getConf, setConf |
assignMemory
Iterable<Long> assignMemory(long availableForAllocation,
int numTotalInputs,
int numTotalOutputs,
Iterable<InitialMemoryRequestContext> requests)
- Parameters:
availableForAllocation - memory available for allocationnumTotalInputs - number of inputs for the tasknumTotalOutputs - number of outputs for the tasksrequests - Iterable view of requests received
- Returns:
- list of allocations, one per request. This must be ordered in the
same order of the requests.
Copyright © 2014 Apache Software Foundation. All rights reserved.