public class StorageUtils
extends Object
Constructor and Description |
---|
StorageUtils() |
Modifier and Type | Method and Description |
---|---|
static void |
dispose(java.nio.ByteBuffer buffer)
Attempt to clean up a ByteBuffer if it is direct or memory-mapped.
|
static scala.collection.Map<BlockId,scala.collection.Seq<String>> |
getRddBlockLocations(int rddId,
scala.collection.Seq<StorageStatus> statuses)
Return a mapping from block ID to its locations for each block that belongs to the given RDD.
|
static void |
unmap(java.nio.ByteBuffer buffer)
Attempt to unmap a ByteBuffer if it is memory-mapped.
|
static void |
updateRddInfo(scala.collection.Seq<RDDInfo> rddInfos,
scala.collection.Seq<StorageStatus> statuses)
Update the given list of RDDInfo with the given list of storage statuses.
|
public static void dispose(java.nio.ByteBuffer buffer)
See also unmap
buffer
- (undocumented)public static void unmap(java.nio.ByteBuffer buffer)
See also dispose
buffer
- (undocumented)public static void updateRddInfo(scala.collection.Seq<RDDInfo> rddInfos, scala.collection.Seq<StorageStatus> statuses)
rddInfos
- (undocumented)statuses
- (undocumented)public static scala.collection.Map<BlockId,scala.collection.Seq<String>> getRddBlockLocations(int rddId, scala.collection.Seq<StorageStatus> statuses)
rddId
- (undocumented)statuses
- (undocumented)