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 longappendBytes(byte[] data, long prevChunkAddress)static PersistentHashMapValueStoragecreate(String path)voiddispose()voidforce()longreadBytes(long tailChunkAddress, byte[] result)Reads bytes pointed by tailChunkAddress into result passed, returns new address if linked list compactification have been performedvoidswitchToCompactionMode(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 IOExceptionReads 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
-
-