public class OffHeapStore extends RandomAccessStore
FileStore.PageSerializationManager
freeSpace
lastChunk, META_ID_KEY, PIPE_LENGTH, readBytes, readCount, recoveryMode, saveChunkLock, storeHeader, writeBytes, writeCount
Constructor and Description |
---|
OffHeapStore() |
Modifier and Type | Method and Description |
---|---|
void |
backup(java.util.zip.ZipOutputStream out) |
void |
free(long pos,
int length)
Mark the space as free.
|
int |
getDefaultRetentionTime()
Get the default retention time for this store in milliseconds.
|
OffHeapStore |
open(java.lang.String fileName,
boolean readOnly) |
void |
open(java.lang.String fileName,
boolean readOnly,
char[] encryptionKey) |
java.nio.ByteBuffer |
readFully(org.h2.mvstore.SFChunk chunk,
long pos,
int len)
Read data from the store.
|
java.lang.String |
toString() |
void |
truncate(long size) |
void |
writeFully(org.h2.mvstore.SFChunk chunk,
long pos,
java.nio.ByteBuffer src)
Write to the file.
|
adjustStoreToLastChunk, allocateChunkSpace, clear, compactMoveChunks, compactStore, createChunk, createChunk, createChunk, doHousekeeping, freeChunkSpace, getAfterLastBlock_, getFillRate, getMovePriority, getRewriteCandidates, initializeStoreHeader, isSpaceReused, markUsed, readStoreHeader, setReuseSpace, shouldSaveNow, shrinkStoreIfPossible, validateFileLength, writeChunk, writeCleanShutdownMark
accountForRemovedPage, bind, close, compact, compactStore, deregisterMapRoot, discoverChunk, dropUnusedChunks, executeFileStoreOperation, findLastChunkWithCompleteValidChunkSet, getAutoCommitDelay, getAutoCompactFillRate, getCacheHitRatio, getCacheSize, getCacheSizeUsed, getChunks, getChunksFillRate, getChunksFromLayoutMap, getCreationTime, getFileName, getLayoutMap, getMaxPageSize, getMetaMapId, getMvStore, getReadBytes, getReadCount, getRetentionTime, getRootPos, getStoreHeader, getTocCacheHitRatio, getWriteBuffer, getWriteCount, hasChangesSince, hasPersistentData, init, initializeCommonHeaderAttributes, isIdle, isKnownVersion, isReadOnly, isRegularMap, lastChunkVersion, populateInfo, processCommonHeaderAttributes, readChunkFooter, readChunkHeaderAndFooter, readChunkHeaderOptionally, readChunkHeaderOptionally, readFully, registerDeadChunk, releaseWriteBuffer, rewriteChunks, rollbackTo, saveChunkMetadataChanges, setAutoCommitDelay, setCacheSize, setLastChunk, setRetentionTime, setSize, size, start, stop, store, sync, writeCleanShutdown
public void open(java.lang.String fileName, boolean readOnly, char[] encryptionKey)
public OffHeapStore open(java.lang.String fileName, boolean readOnly)
public java.lang.String toString()
toString
in class java.lang.Object
public java.nio.ByteBuffer readFully(org.h2.mvstore.SFChunk chunk, long pos, int len)
FileStore
public void free(long pos, int length)
RandomAccessStore
free
in class RandomAccessStore
pos
- the position in byteslength
- the number of bytespublic void writeFully(org.h2.mvstore.SFChunk chunk, long pos, java.nio.ByteBuffer src)
FileStore
writeFully
in class FileStore<org.h2.mvstore.SFChunk>
chunk
- to writepos
- the write positionsrc
- the source bufferpublic void truncate(long size)
truncate
in class RandomAccessStore
public int getDefaultRetentionTime()
FileStore
getDefaultRetentionTime
in class FileStore<org.h2.mvstore.SFChunk>