...
Code Block | ||||||||
---|---|---|---|---|---|---|---|---|
| ||||||||
package org.apache.kafka.streams.state; public interface VersionedKeyValueStore<K, V> extends StateStore { /** * Get the record associated with this key as of the specified timestamp (i.e., * the existing record with the largest timestamp not exceeding the provided * timestamp bound). * * @param lowerKeyBound The key that specifies the lower key bound of the range * @param upperKeyBound The key that specifies the upper key bound of the range * @param fromTime The timestamp lower bound. The records that have been inserted at or before this timestamp and did not become tombstone at or before this timestamp will be retrieved and returned. * @param toTime The timestamp bound. This bound is inclusive; if a record * (for the specified key) exists with this timestamp, then * this is the record that will be returned. * @return The value and timestamp (along with the validTo timestamp) of the records with keys within the specified key range * as of the provided timestamp, or {@code null} if no such record exists * (including if the provided timestamp bound is older than this store's history * retention time, i.e., the store no longer contains data for the provided * timestamp). * @throws NullPointerException If null is used for lowerKeyBound or upperKeyBound. * @throws InvalidStateStoreException if the store is not initialized */ VersionedRecord<V> KeyValueIterator<K, VersionedRecord<V>> get(K lowerKeyBound, K upperKeyBound, long fromTime, long toTime); } |
...