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 Chunk
MVStore. lastChunk
The 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. chunks
The map of chunks.private java.util.Deque<Chunk>
MVStore. deadChunks
static java.util.Comparator<Chunk>
Chunk.PositionComparator. INSTANCE
Methods in org.h2.mvstore that return Chunk Modifier and Type Method Description private Chunk
MVStore. createChunk(long time, long version)
private Chunk
MVStore. discoverChunk(long block)
Discover a valid chunk, searching file backwards from the given blockstatic Chunk
Chunk. fromString(java.lang.String s)
Build a block from the given string.private Chunk
MVStore. getChunk(long pos)
Get the chunk for the given position.private Chunk
MVStore. getChunkForVersion(long version)
private Chunk
MVStore. readChunkFooter(long block)
Try to read a chunk footer.(package private) static Chunk
Chunk. readChunkHeader(java.nio.ByteBuffer buff, long start)
Read the header from the byte buffer.private Chunk
MVStore. readChunkHeader(long block)
private Chunk
MVStore. readChunkHeaderAndFooter(long block, int expectedId)
Read a chunk header and footer, and verify the stored data is consistent.private Chunk
MVStore. readChunkHeaderOptionally(long block)
private Chunk
MVStore. 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 boolean
MVStore. canOverwriteChunk(Chunk c, long oldestVersionToKeep)
int
Chunk.PositionComparator. compare(Chunk one, Chunk two)
private boolean
MVStore. findLastChunkWithCompleteValidChunkSet(Chunk[] lastChunkCandidates, java.util.Map<java.lang.Long,Chunk> validChunksByLocation, java.util.Map<java.lang.Integer,Chunk> validChunksById, boolean afterFullScan)
private void
MVStore. freeChunkSpace(Chunk chunk)
private int
MVStore. getMovePriority(Chunk chunk)
private long[]
MVStore. getToC(Chunk chunk)
private boolean
MVStore. isRewritable(Chunk chunk, long time)
private boolean
MVStore. isSeasonedChunk(Chunk chunk, long time)
private boolean
MVStore. isWriteStoreHeader(Chunk c, boolean storeAtEndOfFile)
private boolean
MVStore. moveChunk(Chunk chunk, long reservedAreaLow, long reservedAreaHigh)
Move specified chunk into free area of the file.private boolean
MVStore. moveChunkInside(Chunk chunkToMove, long boundary)
private void
MVStore. serializeToBuffer(WriteBuffer buff, java.util.ArrayList<Page<?,?>> changed, Chunk c, long reservedLow, java.util.function.Supplier<java.lang.Long> reservedHighSupplier)
private void
MVStore. setLastChunk(Chunk last)
private void
MVStore. storeBuffer(Chunk c, WriteBuffer buff, java.util.ArrayList<Page<?,?>> changed)
protected int
Page. write(Chunk chunk, WriteBuffer buff, java.util.List<java.lang.Long> toc)
Store the page and update the position.(package private) void
Page.NonLeaf. writeChildrenRecursive(Chunk chunk, WriteBuffer buff, java.util.List<java.lang.Long> toc)
(package private) void
Page.IncompleteNonLeaf. writeUnsavedRecursive(Chunk chunk, WriteBuffer buff, java.util.List<java.lang.Long> toc)
(package private) void
Page.Leaf. writeUnsavedRecursive(Chunk chunk, WriteBuffer buff, java.util.List<java.lang.Long> toc)
(package private) void
Page.NonLeaf. writeUnsavedRecursive(Chunk chunk, WriteBuffer buff, java.util.List<java.lang.Long> toc)
(package private) abstract void
Page. 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 void
MVStore. compactMoveChunks(java.lang.Iterable<Chunk> move)
private static java.util.HashSet<java.lang.Integer>
MVStore. createIdSet(java.lang.Iterable<Chunk> toCompact)
private boolean
MVStore. findLastChunkWithCompleteValidChunkSet(Chunk[] lastChunkCandidates, java.util.Map<java.lang.Long,Chunk> validChunksByLocation, java.util.Map<java.lang.Integer,Chunk> validChunksById, boolean afterFullScan)
-