Uses of Class
org.rostore.entity.Record
Package
Description
RoStore core entities
RoStore REST service classes
REST-related APIKey management classes
Classes related to the containers, shards
RoStore async classes for high-frequency massive concurrency
Low-level operation to read/write key entries
-
Uses of Record in org.rostore.entity
Modifier and TypeMethodDescriptionRecord.addOption
(RecordOption recordOption) Adds an option to the record objectRecord.addOptions
(Set<RecordOption> recordOptions) Adds a set of options to the record objectRecord.eol
(long eol) Sets end of live of the recordOptionMismatchException.getRecord()
Record caused an exception (as provided when operation is executed)Record.id
(long id) Sets the id to be stored with the record.Record.ttl
(long ttl) Record.ttlOrUnitEol
(Long ttl, Long unixEol) Creates a record based on ttl or unixEol provided.Record.version
(long version) Sets a version to the recordModifier and TypeMethodDescriptionstatic void
VersionMismatchException.checkAndThrow
(long dataVersion, Record queryRecord) Checks if the version of the request fits the underlying stored version.static void
VersionMismatchInitException.checkAndThrow
(Record record) Checks if the record can be initialized with the given set ofRecordOption
and the version.static void
OptionMismatchException.checkInsertRecord
(Record record) Checks options when an entry should be inserted and throws an exception if the state is invalid (insert is not allowed).static void
OptionMismatchException.checkUpdateRecord
(KeyBlockEntry entry, Record record) Checks options when an entry should be updated and throws an exception if the state is invalid (update is not allowed). -
Uses of Record in org.rostore.service
-
Uses of Record in org.rostore.service.apikey
Modifier and TypeMethodDescriptionApiKeyManager.create
(ApiKeyPermissions apiKeyPermissions, Record record) void
void
ApiKeyManager.update
(ApiKeyDefinition apiKeyDefinition, Record record) -
Uses of Record in org.rostore.v2.container
Modifier and TypeMethodDescriptionContainerShardKeyOperations.getKey
(byte[] key) Executes an operation to find a keyDataWithRecord.getRecord()
Provides a metadata of the entryModifier and TypeMethodDescription<T extends OutputStream>
voidFunction to store the body of the value, using the shard's allocatorlong
Create or update the provided key with the parameter from the provided record.boolean
Removes a key from the shard -
Uses of Record in org.rostore.v2.container.async
Modifier and TypeMethodDescriptionAsyncContainer.put
(int sessionId, byte[] key, Consumer<OutputStream> valueOutputStream) Puts a key-value pair to container.AsyncContainer.put
(int sessionId, String key, Consumer<OutputStream> valueOutputStream) Puts a key-value pair to container.<T> Record
Puts a key-value pair to container.Modifier and TypeMethodDescriptionvoid
AsyncStream.notifyRecord
(Record record) void
AsyncContainer.put
(int sessionId, byte[] key, Consumer<OutputStream> valueOutputStream, Record record) Puts a key-value pair to container.<T extends InputStream>
voidAsyncContainer.put
(int sessionId, byte[] key, AsyncStream<T> valueStream, Record record) Puts a key-value pair to the container<T> void
Puts a key-value pair to container<T> void
Puts a key-value pair to container.<T extends InputStream>
voidAsyncContainer.putAsync
(int sessionId, byte[] key, AsyncStream<T> asyncStream, Record record) Puts a key-value pair to container.void
boolean
Delete a key if one existsboolean
Delete a key if one existsAsyncContainer.removeAsync
(int sessionId, byte[] key, Record record) Delete a key if one exists -
Uses of Record in org.rostore.v2.keys
Modifier and TypeMethodDescriptionKeyBlockEntry.getRecord()
Reads the record from the current positionKeyBlockOperations.getRecord
(byte[] key) Searches for the provided key and return theRecord
associated with it.Modifier and TypeMethodDescriptionlong
Store the record for specified keyboolean
Searches a key and removes the key if found.void
Put record to the current position / entry