Package org.h2.mvstore
Class OffHeapStore
A storage mechanism that "persists" data in the off-heap area of the main memory.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.h2.mvstore.FileStore
FileStore.PageSerializationManager -
Field Summary
Fields inherited from class org.h2.mvstore.RandomAccessStore
freeSpaceFields inherited from class org.h2.mvstore.FileStore
lastChunk, META_ID_KEY, PIPE_LENGTH, readBytes, readCount, recoveryMode, saveChunkLock, storeHeader, writeBytes, writeCount -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidbackup(ZipOutputStream out) voidfree(long pos, int length) Mark the space as free.intGet the default retention time for this store in milliseconds.voidRead data from the store.toString()voidtruncate(long size) voidwriteFully(SFChunk chunk, long pos, ByteBuffer src) Write to the file.Methods inherited from class org.h2.mvstore.RandomAccessStore
adjustStoreToLastChunk, allocateChunkSpace, clear, compactMoveChunks, compactStore, createChunk, createChunk, createChunk, doHousekeeping, freeChunkSpace, getAfterLastBlock_, getFillRate, getMovePriority, getRewriteCandidates, initializeStoreHeader, isSpaceReused, markUsed, readStoreHeader, setReuseSpace, shouldSaveNow, shrinkStoreIfPossible, validateFileLength, writeChunk, writeCleanShutdownMarkMethods inherited from class org.h2.mvstore.FileStore
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
-
Constructor Details
-
OffHeapStore
public OffHeapStore()
-
-
Method Details
-
open
-
open
-
toString
-
readFully
Description copied from class:FileStoreRead data from the store. -
free
public void free(long pos, int length) Description copied from class:RandomAccessStoreMark the space as free.- Overrides:
freein classRandomAccessStore- Parameters:
pos- the position in byteslength- the number of bytes
-
writeFully
Description copied from class:FileStoreWrite to the file.- Specified by:
writeFullyin classFileStore<SFChunk>- Parameters:
chunk- to writepos- the write positionsrc- the source buffer
-
truncate
public void truncate(long size) - Specified by:
truncatein classRandomAccessStore
-
getDefaultRetentionTime
public int getDefaultRetentionTime()Description copied from class:FileStoreGet the default retention time for this store in milliseconds.- Overrides:
getDefaultRetentionTimein classFileStore<SFChunk>- Returns:
- the retention time
-
backup
-