Uses of Class
org.h2.mvstore.Chunk
-
Packages that use Chunk Package Description org.h2.mvstore A persistent storage for tree maps. -
-
Uses of Chunk in org.h2.mvstore
Fields in org.h2.mvstore declared as Chunk Modifier and Type Field Description private ChunkMVStore. lastChunkThe newest chunk.Fields in org.h2.mvstore with type parameters of type Chunk Modifier and Type Field Description private java.util.concurrent.ConcurrentHashMap<java.lang.Integer,Chunk>MVStore. chunksThe map of chunks.private java.util.Deque<Chunk>MVStore. deadChunksstatic java.util.Comparator<Chunk>Chunk.PositionComparator. INSTANCEMethods in org.h2.mvstore that return Chunk Modifier and Type Method Description private ChunkMVStore. createChunk(long time, long version)private ChunkMVStore. discoverChunk(long block)Discover a valid chunk, searching file backwards from the given blockstatic ChunkChunk. fromString(java.lang.String s)Build a block from the given string.private ChunkMVStore. getChunk(long pos)Get the chunk for the given position.private ChunkMVStore. getChunkForVersion(long version)private ChunkMVStore. readChunkFooter(long block)Try to read a chunk footer.(package private) static ChunkChunk. readChunkHeader(java.nio.ByteBuffer buff, long start)Read the header from the byte buffer.private ChunkMVStore. readChunkHeader(long block)private ChunkMVStore. readChunkHeaderAndFooter(long block, int expectedId)Read a chunk header and footer, and verify the stored data is consistent.private ChunkMVStore. readChunkHeaderOptionally(long block)private ChunkMVStore. readChunkHeaderOptionally(long block, int expectedId)Methods in org.h2.mvstore that return types with arguments of type Chunk Modifier and Type Method Description private java.lang.Iterable<Chunk>MVStore. findChunksToMove(long startBlock, long moveSize)private java.lang.Iterable<Chunk>MVStore. findOldChunks(int writeLimit, int targetFillRate)Methods in org.h2.mvstore with parameters of type Chunk Modifier and Type Method Description private static booleanMVStore. canOverwriteChunk(Chunk c, long oldestVersionToKeep)intChunk.PositionComparator. compare(Chunk one, Chunk two)private booleanMVStore. findLastChunkWithCompleteValidChunkSet(Chunk[] lastChunkCandidates, java.util.Map<java.lang.Long,Chunk> validChunksByLocation, java.util.Map<java.lang.Integer,Chunk> validChunksById, boolean afterFullScan)private voidMVStore. freeChunkSpace(Chunk chunk)private intMVStore. getMovePriority(Chunk chunk)private long[]MVStore. getToC(Chunk chunk)private booleanMVStore. isRewritable(Chunk chunk, long time)private booleanMVStore. isSeasonedChunk(Chunk chunk, long time)private booleanMVStore. isWriteStoreHeader(Chunk c, boolean storeAtEndOfFile)private booleanMVStore. moveChunk(Chunk chunk, long reservedAreaLow, long reservedAreaHigh)Move specified chunk into free area of the file.private booleanMVStore. moveChunkInside(Chunk chunkToMove, long boundary)private voidMVStore. serializeToBuffer(WriteBuffer buff, java.util.ArrayList<Page<?,?>> changed, Chunk c, long reservedLow, java.util.function.Supplier<java.lang.Long> reservedHighSupplier)private voidMVStore. setLastChunk(Chunk last)private voidMVStore. storeBuffer(Chunk c, WriteBuffer buff, java.util.ArrayList<Page<?,?>> changed)protected intPage. write(Chunk chunk, WriteBuffer buff, java.util.List<java.lang.Long> toc)Store the page and update the position.(package private) voidPage.NonLeaf. writeChildrenRecursive(Chunk chunk, WriteBuffer buff, java.util.List<java.lang.Long> toc)(package private) voidPage.IncompleteNonLeaf. writeUnsavedRecursive(Chunk chunk, WriteBuffer buff, java.util.List<java.lang.Long> toc)(package private) voidPage.Leaf. writeUnsavedRecursive(Chunk chunk, WriteBuffer buff, java.util.List<java.lang.Long> toc)(package private) voidPage.NonLeaf. writeUnsavedRecursive(Chunk chunk, WriteBuffer buff, java.util.List<java.lang.Long> toc)(package private) abstract voidPage. writeUnsavedRecursive(Chunk chunk, WriteBuffer buff, java.util.List<java.lang.Long> toc)Store this page and all children that are changed, in reverse order, and update the position and the children.Method parameters in org.h2.mvstore with type arguments of type Chunk Modifier and Type Method Description private voidMVStore. compactMoveChunks(java.lang.Iterable<Chunk> move)private static java.util.HashSet<java.lang.Integer>MVStore. createIdSet(java.lang.Iterable<Chunk> toCompact)private booleanMVStore. findLastChunkWithCompleteValidChunkSet(Chunk[] lastChunkCandidates, java.util.Map<java.lang.Long,Chunk> validChunksByLocation, java.util.Map<java.lang.Integer,Chunk> validChunksById, boolean afterFullScan)
-