@@ -31,25 +31,25 @@ void to_json(const dataservice::write::model::UpdateIndexRequest &x,
31
31
32
32
boost::json::object indexFields;
33
33
for (const auto &field_pair : addition.GetIndexFields ()) {
34
- using namespace dataservice ::write::model;
34
+ namespace model = dataservice::write ::model;
35
35
const auto &field = field_pair.second ;
36
36
const auto &key = field_pair.first ;
37
37
auto index_type = field->getIndexType ();
38
- if (index_type == IndexType::String) {
39
- auto s = std::static_pointer_cast<StringIndexValue>(field);
38
+ if (index_type == model:: IndexType::String) {
39
+ auto s = std::static_pointer_cast<model:: StringIndexValue>(field);
40
40
boost::json::value str_val{s->GetValue ()};
41
41
indexFields.emplace (key, std::move (str_val));
42
- } else if (index_type == IndexType::Int) {
43
- auto s = std::static_pointer_cast<IntIndexValue>(field);
42
+ } else if (index_type == model:: IndexType::Int) {
43
+ auto s = std::static_pointer_cast<model:: IntIndexValue>(field);
44
44
indexFields.emplace (key, s->GetValue ());
45
- } else if (index_type == IndexType::Bool) {
46
- auto s = std::static_pointer_cast<BooleanIndexValue>(field);
45
+ } else if (index_type == model:: IndexType::Bool) {
46
+ auto s = std::static_pointer_cast<model:: BooleanIndexValue>(field);
47
47
indexFields.emplace (key, s->GetValue ());
48
- } else if (index_type == IndexType::Heretile) {
49
- auto s = std::static_pointer_cast<HereTileIndexValue>(field);
48
+ } else if (index_type == model:: IndexType::Heretile) {
49
+ auto s = std::static_pointer_cast<model:: HereTileIndexValue>(field);
50
50
indexFields.emplace (key, s->GetValue ());
51
- } else if (index_type == IndexType::TimeWindow) {
52
- auto s = std::static_pointer_cast<TimeWindowIndexValue>(field);
51
+ } else if (index_type == model:: IndexType::TimeWindow) {
52
+ auto s = std::static_pointer_cast<model:: TimeWindowIndexValue>(field);
53
53
indexFields.emplace (key, s->GetValue ());
54
54
}
55
55
}
0 commit comments