public class VanillaMappedBlocks extends Object implements VanillaMappedResource
| Constructor and Description |
|---|
VanillaMappedBlocks(File path,
VanillaMappedMode mode,
long blockSize) |
VanillaMappedBlocks(File path,
VanillaMappedMode mode,
long blockSize,
long overlapSize) |
| Modifier and Type | Method and Description |
|---|---|
VanillaMappedBytes |
acquire(long index) |
protected VanillaMappedBytes |
acquire0(long index) |
void |
close() |
String |
path() |
static VanillaMappedBlocks |
readOnly(File path,
long size) |
static VanillaMappedBlocks |
readWrite(File path,
long size) |
long |
size() |
public VanillaMappedBlocks(File path, VanillaMappedMode mode, long blockSize, long overlapSize) throws IOException
IOExceptionpublic VanillaMappedBlocks(File path, VanillaMappedMode mode, long blockSize) throws IOException
IOExceptionpublic VanillaMappedBytes acquire(long index) throws IOException
IOExceptionprotected VanillaMappedBytes acquire0(long index) throws IOException
IOExceptionpublic String path()
path in interface VanillaMappedResourcepublic long size()
size in interface VanillaMappedResourcepublic void close()
throws IOException
close in interface VanillaMappedResourceIOExceptionpublic static VanillaMappedBlocks readWrite(File path, long size) throws IOException
IOExceptionpublic static VanillaMappedBlocks readOnly(File path, long size) throws IOException
IOExceptionCopyright © 2015. All rights reserved.