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
IOException
public VanillaMappedBlocks(File path, VanillaMappedMode mode, long blockSize, FileLifecycleListener fileLifecycleListener) throws IOException
IOException
public static VanillaMappedBlocks readWrite(File path, long size) throws IOException
IOException
public static VanillaMappedBlocks readOnly(File path, long size) throws IOException
IOException
public static VanillaMappedBlocks readWrite(File path, long size, FileLifecycleListener listener) throws IOException
IOException
public static VanillaMappedBlocks readOnly(File path, long size, FileLifecycleListener listener) throws IOException
IOException
public VanillaMappedBytes acquire(long index) throws IOException
IOException
protected VanillaMappedBytes acquire0(long index) throws IOException
IOException
public String path()
path
in interface VanillaMappedResource
public long size()
size
in interface VanillaMappedResource
public void close() throws IOException
close
in interface VanillaMappedResource
IOException
Copyright © 2019. All rights reserved.