@InterfaceAudience.Private @InterfaceStability.Evolving public class SizeUtil extends java.lang.Object
Constructor and Description |
---|
SizeUtil() |
Modifier and Type | Method and Description |
---|---|
static long |
getMapEntrySize(java.lang.Object key,
java.lang.Object value) |
static long |
getPigObjMemSize(java.lang.Object o) |
static long |
roundToEight(long i)
Memory size of objects are rounded to multiple of 8 bytes
|
public static long getPigObjMemSize(java.lang.Object o)
public static long getMapEntrySize(java.lang.Object key, java.lang.Object value)
public static long roundToEight(long i)
i
- Copyright © 2007-2017 The Apache Software Foundation