Interface VersionedBytesStore
- All Superinterfaces:
KeyValueStore<org.apache.kafka.common.utils.Bytes, byte[]>, ReadOnlyKeyValueStore<org.apache.kafka.common.utils.Bytes, byte[]>, StateStore, TimestampedBytesStore
@Public
public interface VersionedBytesStore
extends KeyValueStore<org.apache.kafka.common.utils.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[]delete(org.apache.kafka.common.utils.Bytes key, long timestamp) The analog ofVersionedKeyValueStore.delete(Object, long).byte[]get(org.apache.kafka.common.utils.Bytes key, long asOfTimestamp) The analog ofVersionedKeyValueStore.get(Object, long).longput(org.apache.kafka.common.utils.Bytes key, byte[] value, long timestamp) The analog ofVersionedKeyValueStore.put(Object, Object, long).default VersionedBytesStorereadOnly(org.apache.kafka.common.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
long put(org.apache.kafka.common.utils.Bytes key, byte[] value, long timestamp) The analog ofVersionedKeyValueStore.put(Object, Object, long). -
get
byte[] get(org.apache.kafka.common.utils.Bytes key, long asOfTimestamp) The analog ofVersionedKeyValueStore.get(Object, long). -
delete
byte[] delete(org.apache.kafka.common.utils.Bytes key, long timestamp) 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<org.apache.kafka.common.utils.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.
-