Uses of Class
org.h2.mvstore.Chunk
Packages that use Chunk
-
Uses of Chunk in org.h2.mvstore
Fields in org.h2.mvstore declared as ChunkFields in org.h2.mvstore with type parameters of type ChunkModifier and TypeFieldDescriptionprivate final ConcurrentHashMap
<Integer, Chunk> MVStore.chunks
The map of chunks.MVStore.deadChunks
static final Comparator
<Chunk> Chunk.PositionComparator.INSTANCE
Methods in org.h2.mvstore that return ChunkModifier and TypeMethodDescriptionprivate 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
(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
(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 ChunkModifier and TypeMethodDescriptionMVStore.findChunksToMove
(long startBlock, long moveSize) MVStore.findOldChunks
(int writeLimit, int targetFillRate) Methods in org.h2.mvstore with parameters of type ChunkModifier and TypeMethodDescriptionprivate static boolean
MVStore.canOverwriteChunk
(Chunk c, long oldestVersionToKeep) int
private boolean
MVStore.findLastChunkWithCompleteValidChunkSet
(Chunk[] lastChunkCandidates, Map<Long, Chunk> validChunksByLocation, Map<Integer, Chunk> validChunksById, boolean afterFullScan) private void
MVStore.freeChunkSpace
(Chunk chunk) private int
MVStore.getMovePriority
(Chunk chunk) private long[]
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
Move specified chunk into free area of the file.private boolean
MVStore.moveChunkInside
(Chunk chunkToMove, long boundary) private void
MVStore.serializeToBuffer
(WriteBuffer buff, ArrayList<Page<?, ?>> changed, Chunk c, long reservedLow, Supplier<Long> reservedHighSupplier) private void
MVStore.setLastChunk
(Chunk last) private void
MVStore.storeBuffer
(Chunk c, WriteBuffer buff, ArrayList<Page<?, ?>> changed) protected final int
Page.write
(Chunk chunk, WriteBuffer buff, List<Long> toc) Store the page and update the position.(package private) void
Page.NonLeaf.writeChildrenRecursive
(Chunk chunk, WriteBuffer buff, List<Long> toc) (package private) void
Page.IncompleteNonLeaf.writeUnsavedRecursive
(Chunk chunk, WriteBuffer buff, List<Long> toc) (package private) void
Page.Leaf.writeUnsavedRecursive
(Chunk chunk, WriteBuffer buff, List<Long> toc) (package private) void
Page.NonLeaf.writeUnsavedRecursive
(Chunk chunk, WriteBuffer buff, List<Long> toc) (package private) abstract void
Page.writeUnsavedRecursive
(Chunk chunk, WriteBuffer buff, List<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 ChunkModifier and TypeMethodDescriptionprivate void
MVStore.compactMoveChunks
(Iterable<Chunk> move) MVStore.createIdSet
(Iterable<Chunk> toCompact) private boolean
MVStore.findLastChunkWithCompleteValidChunkSet
(Chunk[] lastChunkCandidates, Map<Long, Chunk> validChunksByLocation, Map<Integer, Chunk> validChunksById, boolean afterFullScan)