public class MappedFile extends Object
| Constructor and Description |
|---|
MappedFile(String basePath,
long blockSize) |
MappedFile(String basePath,
long blockSize,
long overlapSize) |
| Modifier and Type | Method and Description |
|---|---|
MappedMemory |
acquire(long index) |
MappedMemory |
acquire(long index,
boolean prefetch) |
void |
close() |
static MappedByteBuffer |
getMap(FileChannel fileChannel,
long start,
int size) |
long |
size() |
public MappedFile(String basePath, long blockSize) throws FileNotFoundException
FileNotFoundExceptionpublic MappedFile(String basePath, long blockSize, long overlapSize) throws FileNotFoundException
FileNotFoundExceptionpublic static MappedByteBuffer getMap(@NotNull FileChannel fileChannel, long start, int size) throws IOException
IOExceptionpublic MappedMemory acquire(long index) throws IOException
IOExceptionpublic MappedMemory acquire(long index, boolean prefetch) throws IOException
IOExceptionpublic void close()
throws IOException
IOExceptionpublic long size()
Copyright © 2014. All Rights Reserved.