public class OffHeapStore extends RandomAccessStore
FileStore.PageSerializationManagerfreeSpacelastChunk, 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, writeCleanShutdownMarkaccountForRemovedPage, 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, writeCleanShutdownpublic 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.Objectpublic java.nio.ByteBuffer readFully(org.h2.mvstore.SFChunk chunk,
long pos,
int len)
FileStorepublic void free(long pos,
int length)
RandomAccessStorefree in class RandomAccessStorepos - the position in byteslength - the number of bytespublic void writeFully(org.h2.mvstore.SFChunk chunk,
long pos,
java.nio.ByteBuffer src)
FileStorewriteFully in class FileStore<org.h2.mvstore.SFChunk>chunk - to writepos - the write positionsrc - the source bufferpublic void truncate(long size)
truncate in class RandomAccessStorepublic int getDefaultRetentionTime()
FileStoregetDefaultRetentionTime in class FileStore<org.h2.mvstore.SFChunk>