public class PersistentHashMapValueStorage
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
PersistentHashMapValueStorage.CreationTimeOptions |
static interface |
PersistentHashMapValueStorage.ExceptionalIOCancellationCallback |
Modifier and Type | Field and Description |
---|---|
static boolean |
COMPRESSION_ENABLED |
Modifier and Type | Method and Description |
---|---|
long |
appendBytes(byte[] data,
int offset,
int dataLength,
long prevChunkAddress) |
long |
appendBytes(ByteArraySequence data,
long prevChunkAddress) |
static PersistentHashMapValueStorage |
create(java.nio.file.Path path,
boolean readOnly) |
static PersistentHashMapValueStorage |
create(java.nio.file.Path path,
PersistentHashMapValueStorage.CreationTimeOptions options) |
void |
dispose() |
void |
force() |
long |
getSize() |
boolean |
isReadOnly() |
com.intellij.util.io.PersistentHashMapValueStorage.ReadResult |
readBytes(long tailChunkAddress)
Reads bytes pointed by tailChunkAddress into result passed, returns new address if linked list compactification have been performed
|
public long appendBytes(ByteArraySequence data, long prevChunkAddress) throws java.io.IOException
java.io.IOException
public long appendBytes(byte[] data, int offset, int dataLength, long prevChunkAddress) throws java.io.IOException
java.io.IOException
public com.intellij.util.io.PersistentHashMapValueStorage.ReadResult readBytes(long tailChunkAddress) throws java.io.IOException
java.io.IOException
public long getSize()
public void force()
public void dispose()
public static PersistentHashMapValueStorage create(java.nio.file.Path path, boolean readOnly) throws java.io.IOException
java.io.IOException
public static PersistentHashMapValueStorage create(java.nio.file.Path path, PersistentHashMapValueStorage.CreationTimeOptions options) throws java.io.IOException
java.io.IOException
public boolean isReadOnly()