File tree Expand file tree Collapse file tree 4 files changed +7
-6
lines changed
quixstreams/state/rocksdb Expand file tree Collapse file tree 4 files changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -144,6 +144,8 @@ def set_for_timestamp(
144
144
to the parent `set` method. The parent method internally serializes these
145
145
into a combined key before storing the value in the update cache.
146
146
147
+ Additionally, it triggers the expiration logic.
148
+
147
149
:param timestamp: Timestamp associated with the value in milliseconds.
148
150
:param value: The value to store.
149
151
:param prefix: The key prefix.
Original file line number Diff line number Diff line change 7
7
LATEST_DELETED_VALUE_CF_NAME = "__value-deletion-index__"
8
8
LATEST_DELETED_VALUE_TIMESTAMP_KEY = b"__value_deleted_start_gt__"
9
9
10
- LATEST_TIMESTAMPS_CF_NAME = "__latest-timestamps__"
11
- LATEST_TIMESTAMP_KEY = b"__latest_timestamp__"
12
-
13
10
GLOBAL_COUNTER_CF_NAME = "__global-counter__"
14
11
GLOBAL_COUNTER_KEY = b"__global_counter__"
15
12
Original file line number Diff line number Diff line change 3
3
4
4
from quixstreams .state .recovery import ChangelogProducer
5
5
6
+ from ..metadata import LATEST_TIMESTAMPS_CF_NAME
6
7
from ..partition import RocksDBStorePartition
7
8
from ..types import RocksDBOptionsType
8
9
from .metadata import (
9
10
GLOBAL_COUNTER_CF_NAME ,
10
11
LATEST_DELETED_VALUE_CF_NAME ,
11
12
LATEST_DELETED_WINDOW_CF_NAME ,
12
13
LATEST_EXPIRED_WINDOW_CF_NAME ,
13
- LATEST_TIMESTAMPS_CF_NAME ,
14
14
VALUES_CF_NAME ,
15
15
)
16
16
from .transaction import WindowedRocksDBPartitionTransaction
Original file line number Diff line number Diff line change 9
9
from quixstreams .state .metadata import DEFAULT_PREFIX , SEPARATOR
10
10
from quixstreams .state .recovery import ChangelogProducer
11
11
from quixstreams .state .rocksdb .cache import CounterCache , TimestampsCache
12
+ from quixstreams .state .rocksdb .metadata import (
13
+ LATEST_TIMESTAMP_KEY ,
14
+ LATEST_TIMESTAMPS_CF_NAME ,
15
+ )
12
16
from quixstreams .state .serialization import (
13
17
DumpsFunc ,
14
18
LoadsFunc ,
25
29
LATEST_DELETED_WINDOW_TIMESTAMP_KEY ,
26
30
LATEST_EXPIRED_WINDOW_CF_NAME ,
27
31
LATEST_EXPIRED_WINDOW_TIMESTAMP_KEY ,
28
- LATEST_TIMESTAMP_KEY ,
29
- LATEST_TIMESTAMPS_CF_NAME ,
30
32
VALUES_CF_NAME ,
31
33
)
32
34
from .serialization import (
You can’t perform that action at this time.
0 commit comments