public class MapJoinMemoryExhaustionHandler
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
java.lang.management.MemoryMXBean |
memoryMXBean |
Constructor and Description |
---|
MapJoinMemoryExhaustionHandler(SessionState.LogHelper console,
double maxMemoryUsage)
Constructor expects a LogHelper object in addition to the max percent
of heap memory which can be consumed before a MapJoinMemoryExhaustionException
is thrown.
|
Modifier and Type | Method and Description |
---|---|
void |
checkMemoryStatus(long tableContainerSize,
long numRows)
Throws MapJoinMemoryExhaustionException when the JVM has consumed the
configured percentage of memory.
|
public MapJoinMemoryExhaustionHandler(SessionState.LogHelper console, double maxMemoryUsage)
public void checkMemoryStatus(long tableContainerSize, long numRows) throws MapJoinMemoryExhaustionException
tableContainerSize
- currently table container sizenumRows
- number of rows processedMapJoinMemoryExhaustionException
Copyright © 2012 The Apache Software Foundation