public class DiskBlockData
extends Object
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.io.InputStream toInputStream()
public Object toNetty()
Please see ManagedBuffer.convertToNetty()
for more details.
public org.apache.spark.util.io.ChunkedByteBuffer toChunkedByteBuffer(scala.Function1<Object,java.nio.ByteBuffer> allocator)
public java.nio.ByteBuffer toByteBuffer()
public long size()
public void dispose()