Package org.apache.spark.storage
Class StorageUtils
Object
org.apache.spark.storage.StorageUtils
Helper methods for storage-related objects.
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionstatic voiddispose(ByteBuffer buffer) Attempt to clean up a ByteBuffer if it is direct or memory-mapped.static intGet the port used by the external shuffle service.static org.apache.spark.internal.Logging.LogStringContextLogStringContext(scala.StringContext sc) static org.slf4j.Loggerstatic voidorg$apache$spark$internal$Logging$$log__$eq(org.slf4j.Logger x$1) 
- 
Constructor Details- 
StorageUtilspublic StorageUtils()
 
- 
- 
Method Details- 
disposeAttempt to clean up a ByteBuffer if it is direct or memory-mapped. This uses an *unsafe* Sun API that will cause errors if one attempts to read from the disposed buffer. However, neither the bytes allocated to direct buffers nor file descriptors opened for memory-mapped buffers put pressure on the garbage collector. Waiting for garbage collection may lead to the depletion of off-heap memory or huge numbers of open files. There's unfortunately no standard API to manually dispose of these kinds of buffers.- Parameters:
- buffer- (undocumented)
 
- 
externalShuffleServicePortGet the port used by the external shuffle service. In Yarn mode, this may be already be set through the Hadoop configuration as the server is launched in the Yarn NM.- Parameters:
- conf- (undocumented)
- Returns:
- (undocumented)
 
- 
org$apache$spark$internal$Logging$$log_public static org.slf4j.Logger org$apache$spark$internal$Logging$$log_()
- 
org$apache$spark$internal$Logging$$log__$eqpublic static void org$apache$spark$internal$Logging$$log__$eq(org.slf4j.Logger x$1) 
- 
LogStringContextpublic static org.apache.spark.internal.Logging.LogStringContext LogStringContext(scala.StringContext sc) 
 
-