Uses of Class
org.rostore.v2.media.Media
Package
Description
All operation related to the catalog of blocks
Classes related to the containers, shards
RoStore async classes for high-frequency massive concurrency
Classes related to value read/write safe operations
Major classes that manage basic access to the ro-store
Core Block-related functionalities
Allocators root and secondary
Transactional boundary
Major classes that manage basic block sequence operations
-
Uses of Media in org.rostore.v2.catalog
-
Uses of Media in org.rostore.v2.container
Modifier and TypeMethodDescriptionstatic final void
Container.checkFreeSpaceToCreateContainer
(String name, Media media, ContainerMeta containerMeta) ModifierConstructorDescriptionContainerListOperations
(Media media, ContainerListProperties containerListProperties) Creates a new container listContainerListOperations
(Media media, ContainerListHeader containerListHeader) Loads an existing container list -
Uses of Media in org.rostore.v2.container.async
Modifier and TypeMethodDescriptionstatic AsyncContainers
AsyncContainers.create
(Media media, ContainerListProperties containerListProperties) static AsyncContainers
AsyncContainers.create
(Media media, ContainerListProperties containerListProperties, ExecutorService executorService) static AsyncContainers
AsyncContainers.load
(Media media, ExecutorService executorService, ContainerListHeader header) static AsyncContainers
AsyncContainers.load
(Media media, ContainerListHeader header) void
-
Uses of Media in org.rostore.v2.data
Modifier and TypeMethodDescriptionstatic DataReader
Opens the data reader to start reading from the given block.static <T> T
DataReader.readObject
(Media media, long startIndex, Class<T> clazz) static void
DataReader.safeReader
(Media media, long startIndex, Consumer<DataReader> dataReaderConsumer) static <T extends OutputStream>
voidDataReader.toOutputStream
(Media media, long startIndex, T outputStream) Reads the data from the sequence starting at start index and writes it to the output stream. -
Uses of Media in org.rostore.v2.media
Modifier and TypeMethodDescriptionstatic Media
Media.create
(File file, MediaProperties mediaProperties) Creates a blank mediastatic Media
Media.create
(File file, MediaProperties mediaProperties, BiConsumer<Media, DataWriter> headerStream) Creates a new media and store with an option to store to headers stream of the media.static <T> Media
Media.create
(File file, MediaProperties mediaProperties, Function<Media, T> headerFactory) Creates a new media and store a header class to the header of the mediastatic Media
Opens the media object from the existing filestatic <T> Media
Media.open
(File file, Class<T> headerClass, BiConsumer<Media, T> header) Opens a media, reads the header and provides it for further initializationstatic Media
Media.open
(File file, BiConsumer<Media, DataReader> headerStream) Opens a media, allows to read the header from a binary streamModifier and TypeMethodDescriptionstatic Media
Media.create
(File file, MediaProperties mediaProperties, BiConsumer<Media, DataWriter> headerStream) Creates a new media and store with an option to store to headers stream of the media.static <T> Media
Media.create
(File file, MediaProperties mediaProperties, Function<Media, T> headerFactory) Creates a new media and store a header class to the header of the mediastatic <T> Media
Media.open
(File file, Class<T> headerClass, BiConsumer<Media, T> header) Opens a media, reads the header and provides it for further initializationstatic Media
Media.open
(File file, BiConsumer<Media, DataReader> headerStream) Opens a media, allows to read the header from a binary streamModifierConstructorDescriptionprotected
Media
(File file, BiConsumer<Media, DataReader> headerStream) Load an existing mediaprotected
Media
(File file, MediaProperties mediaProperties, BiConsumer<Media, DataWriter> headerStream) Create a new media -
Uses of Media in org.rostore.v2.media.block
Modifier and TypeMethodDescriptionBlockProvider.getMedia()
Provides an associatedMedia
objectInternalBlockProvider.getMedia()
Provides an associatedMedia
objectModifier and TypeMethodDescriptionstatic InternalBlockProvider
Creates a block provider that contains a newBlockContainer
. -
Uses of Media in org.rostore.v2.media.block.allocator
Modifier and TypeMethodDescriptionBlockAllocator.getMedia()
Provides parent mediaBlockAllocatorInternal.getMedia()
The parent mediaModifier and TypeMethodDescriptionstatic BlockAllocator
Creates a new root block allocator.static BlockAllocator
-
Uses of Media in org.rostore.v2.media.block.container
Modifier and TypeMethodDescriptionBlockContainer.getMedia()
A media object this container belongs toModifierConstructorDescriptionBlockContainer
(Media media, int containerId) This should never be used directly UsenewBlockContainer()
instead orInternalBlockProvider.create(BlockAllocator)
-
Uses of Media in org.rostore.v2.seq