@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 FetchedInputAllocator
IOException
public FetchedInput allocateType(FetchedInput.Type type, long actualSize, long compressedSize, InputAttemptIdentifier inputAttemptIdentifier) throws IOException
allocateType
in interface FetchedInputAllocator
IOException
public void fetchComplete(FetchedInput fetchedInput)
fetchComplete
in interface FetchedInputCallback
public void fetchFailed(FetchedInput fetchedInput)
fetchFailed
in interface FetchedInputCallback
public void freeResources(FetchedInput fetchedInput)
freeResources
in interface FetchedInputCallback
Copyright © 2016 Apache Software Foundation. All rights reserved.