@InterfaceAudience.Private @InterfaceStability.Evolving public static class SelfSpillBag.MemoryLimits extends Object implements Serializable
Constructor and Description |
---|
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 MemoryLimits(int bagCount, float percent)
bagCount
- percent
- public long getCacheLimit()
public void addNewObjSize(long memorySize)
memorySize
- public long getNumObjectsSizeAdded()
Copyright © 2007-2017 The Apache Software Foundation