Uses of Class
org.rostore.v2.media.block.allocator.BlockAllocator
Packages that use 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
Methods in org.rostore.v2.container that return BlockAllocator -
Uses of BlockAllocator in org.rostore.v2.data
Methods in org.rostore.v2.data with parameters of type BlockAllocatorModifier and TypeMethodDescriptionstatic <T extends InputStream>
longDataWriter.fromInputStream(BlockAllocator blockAllocator, T inputStream) Writes the data from the input streamstatic DataReaderDataReader.open(BlockAllocator allocator, long startIndex) Opens the data reader to start reading from the given block.static DataWriterDataWriter.open(BlockAllocator blockAllocator, long startIndex) Opens the data writer at the specific starting block indexstatic longDataWriter.safeWriter(BlockAllocator blockAllocator, long startIndex, Consumer<DataWriter> dataWriterConsumer) Write the data from the unknown source to the storage in a safe mode.static longDataWriter.safeWriter(BlockAllocator blockAllocator, Consumer<DataWriter> dataWriterConsumer) Write the data from the unknown source to the storage in a safe mode.static <T> longDataWriter.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
Methods in org.rostore.v2.keys with parameters of type BlockAllocatorModifier and TypeMethodDescriptionstatic KeyBlockOperationsKeyBlockOperations.create(BlockAllocator blockAllocator, RecordLengths recordLengths) Creates a new key operations, allocates a new sequence to manage the keys.static KeyBlockOperationsKeyBlockOperations.load(BlockAllocator blockAllocator, long startIndex, RecordLengths recordLengths) Loads the key operations -
Uses of BlockAllocator in org.rostore.v2.media
Methods in org.rostore.v2.media that return BlockAllocatorModifier and TypeMethodDescriptionMedia.createSecondaryBlockAllocator(String allocatorName, long upperBlockNumberLimit) CreatesSecondaryBlockAllocatorbased on the internal root allocator.Media.getRootBlockAllocator()Provides the root block allocator.Media.loadSecondaryBlockAllocator(String allocatorName, long startIndex, long upperBlockNumberLimit) LoadsSecondaryBlockAllocatorbased on the internal root allocator.Methods in org.rostore.v2.media with parameters of type BlockAllocatorModifier and TypeMethodDescriptionvoidMedia.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
Methods in org.rostore.v2.media.block that return BlockAllocatorModifier and TypeMethodDescriptionBlockProvider.getBlockAllocator()Provides a block allocatorInternalBlockProvider.getBlockAllocator()Provides a block allocatorMethods in org.rostore.v2.media.block with parameters of type BlockAllocatorModifier and TypeMethodDescriptionstatic InternalBlockProviderInternalBlockProvider.create(BlockAllocator blockAllocator) Creates a block provider that contains a newBlockContainer.voidInternalBlockProvider.exchangeBlockAllocator(BlockAllocator blockAllocator) Exchange a block allocator. -
Uses of BlockAllocator in org.rostore.v2.media.block.allocator
Methods in org.rostore.v2.media.block.allocator that return BlockAllocatorModifier and TypeMethodDescriptionstatic BlockAllocatorCreates a new root block allocator.static BlockAllocatorSecondaryBlockAllocator.create(String allocatorName, BlockAllocator rootBlockAllocator, long upperBlockNumberLimit) Creates a new secondary block allocator.static BlockAllocatorstatic BlockAllocatorSecondaryBlockAllocator.load(String allocatorName, BlockAllocator rootBlockAllocator, long startIndex, long upperBlockNumberLimit) Loads the secondary block allocator by providing the first block of the allocatorstatic BlockAllocatorBlockAllocator.wrap(BlockAllocatorInternal blockAllocatorInternal) WrapsBlockAllocatorInternalto create an allocator.Methods in org.rostore.v2.media.block.allocator with parameters of type BlockAllocatorModifier and TypeMethodDescriptionstatic BlockAllocatorSecondaryBlockAllocator.create(String allocatorName, BlockAllocator rootBlockAllocator, long upperBlockNumberLimit) Creates a new secondary block allocator.static BlockAllocatorSecondaryBlockAllocator.load(String allocatorName, BlockAllocator rootBlockAllocator, long startIndex, long upperBlockNumberLimit) Loads the secondary block allocator by providing the first block of the allocator