@InterfaceAudience.Private @InterfaceStability.Evolving public static class SelfSpillBag.MemoryLimits extends java.lang.Object
Constructor and Description |
---|
SelfSpillBag.MemoryLimits(int bagCount,
float percent) |
Modifier and Type | Method and Description |
---|---|
void |
addNewObjSize(long memorySize)
Submit information about size of another object
|
long |
getCacheLimit()
Computes the number of objects that would fit into memory based on
the memory limit and average size of each object.
|
long |
getNumObjectsSizeAdded() |
public SelfSpillBag.MemoryLimits(int bagCount, float percent)
bagCount
- percent
- public long getCacheLimit()
public void addNewObjSize(long memorySize)
memorySize
- public long getNumObjectsSizeAdded()
Copyright © 2007-2012 The Apache Software Foundation