Class FileBackedStorageEngine.FileChunk
java.lang.Object
org.terracotta.offheapstore.disk.storage.FileBackedStorageEngine.FileChunk
- Enclosing class:
FileBackedStorageEngine<K,V>
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final AATreeFileAllocatorprivate final longprivate final longprivate boolean -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) long(package private) longcapacity()(package private) voidclear()(package private) voidevictAll()(package private) voidfree(long address) private WriteContextgetDiskWriteContext(long address, int max) (package private) WriteContextgetKeyWriteContext(long address) private WriteContextgetQueuedWriteContext(FileBackedStorageEngine<K, V>.FileWriteTask current, ByteBuffer queuedBuffer) (package private) WriteContextgetValueWriteContext(long address) (package private) booleanisValid()(package private) longoccupied()(package private) voidpersist(ObjectOutput output) (package private) ByteBufferreadBuffer(long position, int length) (package private) ByteBufferreadKeyBuffer(long address) protected intreadPojoHash(long address) (package private) ByteBufferreadValueBuffer(long address) (package private) LongwriteMappingBuffers(ByteBuffer keyBuffer, ByteBuffer valueBuffer, int pojoHash)
-
Field Details
-
allocator
-
filePosition
private final long filePosition -
baseAddress
private final long baseAddress -
valid
private boolean valid
-
-
Constructor Details
-
FileChunk
FileChunk(long size, long baseAddress) -
FileChunk
FileChunk(ObjectInput input) throws IOException - Throws:
IOException
-
-
Method Details
-
readKeyBuffer
-
readPojoHash
protected int readPojoHash(long address) -
readValueBuffer
-
readBuffer
-
writeMappingBuffers
-
getKeyWriteContext
-
getValueWriteContext
-
getDiskWriteContext
-
getQueuedWriteContext
private WriteContext getQueuedWriteContext(FileBackedStorageEngine<K, V>.FileWriteTask current, ByteBuffer queuedBuffer) -
free
void free(long address) -
clear
void clear() -
capacity
long capacity() -
occupied
long occupied() -
baseAddress
long baseAddress() -
persist
- Throws:
IOException
-
isValid
boolean isValid() -
encodings
-
evictAll
void evictAll()
-