public class VanillaMappedBlocks extends Object implements VanillaMappedResource
| Constructor and Description |
|---|
VanillaMappedBlocks(File path,
VanillaMappedMode mode,
long blockSize,
FileLifecycleListener fileLifecycleListener) |
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 |
readOnly(File path,
long size,
FileLifecycleListener listener) |
static VanillaMappedBlocks |
readWrite(File path,
long size) |
static VanillaMappedBlocks |
readWrite(File path,
long size,
FileLifecycleListener listener) |
long |
size() |
public VanillaMappedBlocks(File path, VanillaMappedMode mode, long blockSize, long overlapSize) throws IOException
IOExceptionpublic VanillaMappedBlocks(File path, VanillaMappedMode mode, long blockSize, FileLifecycleListener fileLifecycleListener) throws IOException
IOExceptionpublic static VanillaMappedBlocks readWrite(File path, long size) throws IOException
IOExceptionpublic static VanillaMappedBlocks readOnly(File path, long size) throws IOException
IOExceptionpublic static VanillaMappedBlocks readWrite(File path, long size, FileLifecycleListener listener) throws IOException
IOExceptionpublic static VanillaMappedBlocks readOnly(File path, long size, FileLifecycleListener listener) 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 VanillaMappedResourceIOExceptionCopyright © 2019. All rights reserved.