Uses of Class
org.rostore.v2.media.block.allocator.BlockAllocator
Package
Description
Classes related to the containers, shards
Classes related to value read/write safe operations
Low-level operation to read/write key entries
Major classes that manage basic access to the ro-store
Core Block-related functionalities
Allocators root and secondary
-
Uses of BlockAllocator in org.rostore.v2.container
-
Uses of BlockAllocator in org.rostore.v2.data
Modifier and TypeMethodDescriptionstatic <T extends InputStream>
longDataWriter.fromInputStream
(BlockAllocator blockAllocator, T inputStream) Writes the data from the input streamstatic DataReader
DataReader.open
(BlockAllocator allocator, long startIndex) Opens the data reader to start reading from the given block.static DataWriter
DataWriter.open
(BlockAllocator blockAllocator, long startIndex) Opens the data writer at the specific starting block indexstatic long
DataWriter.safeWriter
(BlockAllocator blockAllocator, long startIndex, Consumer<DataWriter> dataWriterConsumer) Write the data from the unknown source to the storage in a safe mode.static long
DataWriter.safeWriter
(BlockAllocator blockAllocator, Consumer<DataWriter> dataWriterConsumer) Write the data from the unknown source to the storage in a safe mode.static <T> long
DataWriter.writeObject
(BlockAllocator blockAllocator, T object) Writes the serialized java object to the store in the safe manner. -
Uses of BlockAllocator in org.rostore.v2.keys
Modifier and TypeMethodDescriptionstatic KeyBlockOperations
KeyBlockOperations.create
(BlockAllocator blockAllocator, RecordLengths recordLengths) Creates a new key operations, allocates a new sequence to manage the keys.static KeyBlockOperations
KeyBlockOperations.load
(BlockAllocator blockAllocator, long startIndex, RecordLengths recordLengths) Loads the key operations -
Uses of BlockAllocator in org.rostore.v2.media
Modifier and TypeMethodDescriptionMedia.createSecondaryBlockAllocator
(String allocatorName, long upperBlockNumberLimit) CreatesSecondaryBlockAllocator
based on the internal root allocator.Media.getRootBlockAllocator()
Provides the root block allocator.Media.loadSecondaryBlockAllocator
(String allocatorName, long startIndex, long upperBlockNumberLimit) LoadsSecondaryBlockAllocator
based on the internal root allocator.Modifier and TypeMethodDescriptionvoid
Media.removeSecondaryBlockAllocator
(BlockAllocator blockAllocator) Call to this function will free all the blocks allocated in the secondary allocator. -
Uses of BlockAllocator in org.rostore.v2.media.block
Modifier and TypeMethodDescriptionBlockProvider.getBlockAllocator()
Provides a block allocatorInternalBlockProvider.getBlockAllocator()
Provides a block allocatorModifier and TypeMethodDescriptionstatic InternalBlockProvider
InternalBlockProvider.create
(BlockAllocator blockAllocator) Creates a block provider that contains a newBlockContainer
.void
InternalBlockProvider.exchangeBlockAllocator
(BlockAllocator blockAllocator) Exchange a block allocator. -
Uses of BlockAllocator in org.rostore.v2.media.block.allocator
Modifier and TypeMethodDescriptionstatic BlockAllocator
Creates a new root block allocator.static BlockAllocator
SecondaryBlockAllocator.create
(String allocatorName, BlockAllocator rootBlockAllocator, long upperBlockNumberLimit) Creates a new secondary block allocator.static BlockAllocator
static BlockAllocator
SecondaryBlockAllocator.load
(String allocatorName, BlockAllocator rootBlockAllocator, long startIndex, long upperBlockNumberLimit) Loads the secondary block allocator by providing the first block of the allocatorstatic BlockAllocator
BlockAllocator.wrap
(BlockAllocatorInternal blockAllocatorInternal) WrapsBlockAllocatorInternal
to create an allocator.Modifier and TypeMethodDescriptionstatic BlockAllocator
SecondaryBlockAllocator.create
(String allocatorName, BlockAllocator rootBlockAllocator, long upperBlockNumberLimit) Creates a new secondary block allocator.static BlockAllocator
SecondaryBlockAllocator.load
(String allocatorName, BlockAllocator rootBlockAllocator, long startIndex, long upperBlockNumberLimit) Loads the secondary block allocator by providing the first block of the allocator