Package org.apache.spark.storage
Class DiskBlockData
Object
org.apache.spark.storage.DiskBlockData
- All Implemented Interfaces:
BlockData
-
Constructor Summary
ConstructorDescriptionDiskBlockData
(long minMemoryMapBytes, long maxMemoryMapBytes, File file, long blockSize) -
Method Summary
Modifier and TypeMethodDescriptionvoid
dispose()
long
size()
org.apache.spark.util.io.ChunkedByteBuffer
toChunkedByteBuffer
(scala.Function1<Object, ByteBuffer> allocator) toNetty()
Returns a Netty-friendly wrapper for the block's data.
-
Constructor Details
-
DiskBlockData
-
-
Method Details
-
dispose
public void dispose() -
size
public long size() -
toByteBuffer
- Specified by:
toByteBuffer
in interfaceBlockData
-
toChunkedByteBuffer
public org.apache.spark.util.io.ChunkedByteBuffer toChunkedByteBuffer(scala.Function1<Object, ByteBuffer> allocator) - Specified by:
toChunkedByteBuffer
in interfaceBlockData
-
toInputStream
- Specified by:
toInputStream
in interfaceBlockData
-
toNetty
Returns a Netty-friendly wrapper for the block's data.Please see
ManagedBuffer.convertToNetty()
for more details.
-