public class SizeEstimator
extends Object
Based on the following JavaWorld article: https://www.infoworld.com/article/2077408/sizeof-for-java.html
Constructor and Description |
---|
SizeEstimator() |
Modifier and Type | Method and Description |
---|---|
static long |
estimate(Object obj)
Estimate the number of bytes that the given object takes up on the JVM heap.
|
static void |
org$apache$spark$internal$Logging$$log__$eq(org.slf4j.Logger x$1) |
static org.slf4j.Logger |
org$apache$spark$internal$Logging$$log_() |
public static long estimate(Object obj)
This is useful for determining the amount of heap space a broadcast variable will occupy on each executor or the amount of space each object will take when caching objects in deserialized form. This is not the same as the serialized size of the object, which will typically be much smaller.
obj
- (undocumented)public static org.slf4j.Logger org$apache$spark$internal$Logging$$log_()
public static void org$apache$spark$internal$Logging$$log__$eq(org.slf4j.Logger x$1)