28
28
import io .temporal .internal .common .ProtoEnumNameUtils ;
29
29
import io .temporal .internal .common .SearchAttributesUtil ;
30
30
import java .util .Collections ;
31
- import java .util .HashMap ;
32
31
import java .util .Map ;
33
32
import java .util .concurrent .ConcurrentHashMap ;
34
33
import javax .annotation .Nonnull ;
@@ -42,6 +41,7 @@ class TestVisibilityStoreImpl implements TestVisibilityStore {
42
41
private static final String DEFAULT_KEY_DATE_TIME = "CustomDatetimeField" ;
43
42
private static final String DEFAULT_KEY_DOUBLE = "CustomDoubleField" ;
44
43
private static final String DEFAULT_KEY_BOOL = "CustomBoolField" ;
44
+ private static final String TEMPORAL_CHANGE_VERSION = "TemporalChangeVersion" ;
45
45
46
46
private final Map <String , IndexedValueType > searchAttributes =
47
47
new ConcurrentHashMap <>(
@@ -53,9 +53,11 @@ class TestVisibilityStoreImpl implements TestVisibilityStore {
53
53
.put (DEFAULT_KEY_DOUBLE , IndexedValueType .INDEXED_VALUE_TYPE_DOUBLE )
54
54
.put (DEFAULT_KEY_BOOL , IndexedValueType .INDEXED_VALUE_TYPE_BOOL )
55
55
.put (DEFAULT_KEY_DATE_TIME , IndexedValueType .INDEXED_VALUE_TYPE_DATETIME )
56
+ .put (TEMPORAL_CHANGE_VERSION , IndexedValueType .INDEXED_VALUE_TYPE_KEYWORD_LIST )
56
57
.build ());
57
58
58
- private final Map <ExecutionId , SearchAttributes > executionSearchAttributes = new HashMap <>();
59
+ private final Map <ExecutionId , SearchAttributes > executionSearchAttributes =
60
+ new ConcurrentHashMap <>();
59
61
60
62
@ Override
61
63
public void addSearchAttribute (String name , IndexedValueType type ) {
0 commit comments