@InterfaceAudience.Private public class SimpleFetchedInputAllocator extends Object implements FetchedInputAllocator, FetchedInputCallback
| Constructor and Description |
|---|
SimpleFetchedInputAllocator(String srcNameTrimmed,
String uniqueIdentifier,
org.apache.hadoop.conf.Configuration conf,
long maxTaskAvailableMemory,
long memoryAvailable) |
| Modifier and Type | Method and Description |
|---|---|
FetchedInput |
allocate(long actualSize,
long compressedSize,
InputAttemptIdentifier inputAttemptIdentifier) |
FetchedInput |
allocateType(FetchedInput.Type type,
long actualSize,
long compressedSize,
InputAttemptIdentifier inputAttemptIdentifier) |
void |
fetchComplete(FetchedInput fetchedInput) |
void |
fetchFailed(FetchedInput fetchedInput) |
void |
freeResources(FetchedInput fetchedInput) |
static long |
getInitialMemoryReq(org.apache.hadoop.conf.Configuration conf,
long maxAvailableTaskMemory) |
@InterfaceAudience.Private
public static long getInitialMemoryReq(org.apache.hadoop.conf.Configuration conf,
long maxAvailableTaskMemory)
public FetchedInput allocate(long actualSize, long compressedSize, InputAttemptIdentifier inputAttemptIdentifier) throws IOException
allocate in interface FetchedInputAllocatorIOExceptionpublic FetchedInput allocateType(FetchedInput.Type type, long actualSize, long compressedSize, InputAttemptIdentifier inputAttemptIdentifier) throws IOException
allocateType in interface FetchedInputAllocatorIOExceptionpublic void fetchComplete(FetchedInput fetchedInput)
fetchComplete in interface FetchedInputCallbackpublic void fetchFailed(FetchedInput fetchedInput)
fetchFailed in interface FetchedInputCallbackpublic void freeResources(FetchedInput fetchedInput)
freeResources in interface FetchedInputCallbackCopyright © 2016 Apache Software Foundation. All rights reserved.