Constructor and Description |
---|
DiskBlockData(long minMemoryMapBytes,
long maxMemoryMapBytes,
java.io.File file,
long blockSize) |
Modifier and Type | Method and Description |
---|---|
void |
dispose() |
long |
size() |
java.nio.ByteBuffer |
toByteBuffer() |
org.apache.spark.util.io.ChunkedByteBuffer |
toChunkedByteBuffer(scala.Function1<Object,java.nio.ByteBuffer> allocator) |
java.io.InputStream |
toInputStream() |
Object |
toNetty()
Returns a Netty-friendly wrapper for the block's data.
|
public DiskBlockData(long minMemoryMapBytes, long maxMemoryMapBytes, java.io.File file, long blockSize)
public java.nio.ByteBuffer toByteBuffer()
toByteBuffer
in interface BlockData
public org.apache.spark.util.io.ChunkedByteBuffer toChunkedByteBuffer(scala.Function1<Object,java.nio.ByteBuffer> allocator)
toChunkedByteBuffer
in interface BlockData
public java.io.InputStream toInputStream()
toInputStream
in interface BlockData