Package com.intellij.util.io
Class PersistentHashMapValueStorage
- java.lang.Object
-
- com.intellij.util.io.PersistentHashMapValueStorage
-
public class PersistentHashMapValueStorage extends Object
-
-
Constructor Summary
Constructors Constructor Description PersistentHashMapValueStorage(String path)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description long
appendBytes(byte[] data, long prevChunkAddress)
static PersistentHashMapValueStorage
create(String path)
void
dispose()
void
force()
long
readBytes(long tailChunkAddress, byte[] result)
Reads bytes pointed by tailChunkAddress into result passed, returns new address if linked list compactification have been performedvoid
switchToCompactionMode(PagedFileStorage.StorageLock lock)
-
-
-
Constructor Detail
-
PersistentHashMapValueStorage
public PersistentHashMapValueStorage(String path) throws IOException
- Throws:
IOException
-
-
Method Detail
-
appendBytes
public long appendBytes(byte[] data, long prevChunkAddress) throws IOException
- Throws:
IOException
-
readBytes
public long readBytes(long tailChunkAddress, byte[] result) throws IOException
Reads bytes pointed by tailChunkAddress into result passed, returns new address if linked list compactification have been performed- Throws:
IOException
-
force
public void force()
-
dispose
public void dispose()
-
switchToCompactionMode
public void switchToCompactionMode(PagedFileStorage.StorageLock lock)
-
create
public static PersistentHashMapValueStorage create(String path) throws IOException
- Throws:
IOException
-
-