Interface VersionedBytesStore
- All Superinterfaces:
KeyValueStore<Bytes,byte[]>, ReadOnlyKeyValueStore<Bytes, byte[]>, StateStore, TimestampedBytesStore
@Public
public interface VersionedBytesStore
extends KeyValueStore<Bytes,byte[]>, TimestampedBytesStore
A representation of a versioned key-value store as a
KeyValueStore of type <Bytes, byte[]>.
See VersionedBytesStoreSupplier for more.-
Method Summary
Modifier and TypeMethodDescriptionbyte[]The analog ofVersionedKeyValueStore.delete(Object, long).byte[]The analog ofVersionedKeyValueStore.get(Object, long).longThe analog ofVersionedKeyValueStore.put(Object, Object, long).default VersionedBytesStorereadOnly(IsolationLevel isolationLevel) Return a read-only view of this store bound to the givenIsolationLevel.Methods inherited from interface KeyValueStore
delete, put, putAll, putIfAbsentMethods inherited from interface ReadOnlyKeyValueStore
all, approximateNumEntries, get, prefixScan, range, reverseAll, reverseRangeMethods inherited from interface StateStore
approximateNumUncommittedBytes, close, commit, committedOffset, flush, getPosition, init, isOpen, managesOffsets, name, persistent, query
-
Method Details
-
put
The analog ofVersionedKeyValueStore.put(Object, Object, long). -
get
The analog ofVersionedKeyValueStore.get(Object, long). -
delete
The analog ofVersionedKeyValueStore.delete(Object, long). -
readOnly
Return a read-only view of this store bound to the givenIsolationLevel. Covariantly narrowsReadOnlyKeyValueStore.readOnly(IsolationLevel)so callers retain access to the versioned read methods (get(Bytes, long)and friends).- Specified by:
readOnlyin interfaceReadOnlyKeyValueStore<Bytes,byte[]> - Parameters:
isolationLevel- the isolation level the returned view should use for reads.- Returns:
- a read-only view of this store using the given isolation level.
-