Uses of Class
org.rostore.v2.catalog.CatalogBlockIndices
Package
Description
All operation related to the catalog of blocks
Classes related to value read/write safe operations
Allocators root and secondary
Major classes that manage basic block sequence operations
-
Uses of CatalogBlockIndices in org.rostore.v2.catalog
Modifier and TypeMethodDescriptionCatalogBlockIndices.extract
(int length) CachedCatalogBlockOperations.extractIndex
(int blockNumber, boolean rebalance) This is the version ofCatalogBlockOperations.extractIndex(long, boolean)
that uses internal cacheCatalogBlockOperations.extractIndex
(long number, boolean rebalance) This function will extract the requested number of blocks from the catalog.CatalogBlockIndices.remove
(long startIndex, long stopIndex) CatalogBlockIndices.remove
(CatalogBlockIndices catalogBlockIndices) Removes what is included in this catalogModifier and TypeMethodDescriptionvoid
CachedCatalogBlockOperations.add
(CatalogBlockIndices catalogBlockIndices, boolean rebalance) This is a version ofCatalogBlockOperations.add(CatalogBlockIndices, boolean)
with the cachevoid
CatalogBlockIndices.add
(CatalogBlockIndices catalogBlockIndices) void
CatalogBlockOperations.add
(CatalogBlockIndices catalogBlockIndices, boolean rebalance) Adds a set of blocks to the catalog.static CatalogBlockOperations
CatalogBlockOperations.create
(BlockProvider blockProvider, CatalogBlockIndices catalogBlockIndices) Creates a new catalog.void
CachedCatalogBlockOperations.remove
(CatalogBlockIndices catalogBlockIndices, boolean rebalance) This is a version ofCatalogBlockOperations.remove(CatalogBlockIndices, boolean)
with the cacheCatalogBlockIndices.remove
(CatalogBlockIndices catalogBlockIndices) Removes what is included in this catalogvoid
CatalogBlockOperations.remove
(CatalogBlockIndices catalogBlockIndices, boolean rebalance) Removes a set of blocks from the catalog.Modifier and TypeMethodDescriptionvoid
CachedCatalogBlockOperations.iterateAll
(Consumer<CatalogBlockIndices> consumer) Iterates all blocks in the catalog, inclusive those from the cachevoid
CatalogBlockOperations.iterateAll
(Consumer<CatalogBlockIndices> entryConsumer) A function will iteratively provide all block indices in the catalog -
Uses of CatalogBlockIndices in org.rostore.v2.data
Modifier and TypeMethodDescriptionvoid
DataReader.iterateIndices
(Consumer<CatalogBlockIndices> consumer) Executed block by block with its content. -
Uses of CatalogBlockIndices in org.rostore.v2.media.block.allocator
Modifier and TypeMethodDescriptionAllocates a given number of blocks.provide a list of blocks to be usedModifier and TypeMethodDescriptionvoid
BlockAllocatorListener.blocksAllocated
(String name, BlockType blockType, CatalogBlockIndices catalogBlockIndices, boolean rebalance) Notifies that the blocks have been allocatedvoid
BlockVerifierListener.blocksAllocated
(String name, BlockType blockType, CatalogBlockIndices catalogBlockIndices, boolean rebalance) void
BlockAllocatorListener.blocksFreed
(String name, CatalogBlockIndices catalogBlockIndices, boolean rebalance) Notifies that the blocks have been freedvoid
BlockVerifierListener.blocksFreed
(String name, CatalogBlockIndices catalogBlockIndices, boolean rebalance) void
BlockAllocator.free
(CatalogBlockIndices indices) Marks all the blocks in the provided index as freevoid
BlockAllocatorInternal.free
(CatalogBlockIndices indices, boolean rebalance) Free a set of blocksvoid
BlockAllocatorListeners.notifyAllocated
(String name, BlockType blockType, CatalogBlockIndices catalogBlockIndices, boolean rebalance) Notify all listeners in the collection that a set of new blocks has just been allocatedvoid
BlockAllocatorListeners.notifyFreed
(String name, CatalogBlockIndices catalogBlockIndices, boolean rebalance) Notify all listeners in the collection that a set of blocks has just been freed -
Uses of CatalogBlockIndices in org.rostore.v2.seq
Modifier and TypeMethodDescriptionstatic <T extends SequenceBlock>
TSequenceBlock.create
(BlockProvider blockProvider, CatalogBlockIndices catalogBlockIndices, Function<BlockSequence<T>, T> factory, BlockType blockType) Creates a new block sequence and initialize a sequence block on its basisModifierConstructorDescriptionBlockSequence
(BlockProvider blockProvider, CatalogBlockIndices catalogBlockIndices, Function<BlockSequence<T>, T> factory, BlockType blockType) Create a new sequence.