@@ -69,14 +69,14 @@ class TTestDbWrapper : public IDbWrapper {
69
69
return true ;
70
70
}
71
71
72
- void WriteColumn (ui32 index, const TPortionInfo& portion, const TColumnRecord& row) override {
72
+ void WriteColumn (const TPortionInfo& portion, const TColumnRecord& row) override {
73
73
auto proto = portion.GetMeta ().SerializeToProto (row.ColumnId , row.Chunk );
74
74
auto rowProto = row.GetMeta ().SerializeToProto ();
75
75
if (proto) {
76
76
*rowProto.MutablePortionMeta () = std::move (*proto);
77
77
}
78
78
79
- auto & data = Indices[index ].Columns [portion.GetPathId ()];
79
+ auto & data = Indices[0 ].Columns [portion.GetPathId ()];
80
80
NOlap::TColumnChunkLoadContext loadContext (row.GetAddress (), row.BlobRange , rowProto);
81
81
auto itInsertInfo = LoadContexts[portion.GetAddress ()].emplace (row.GetAddress (), loadContext);
82
82
if (!itInsertInfo.second ) {
@@ -104,8 +104,8 @@ class TTestDbWrapper : public IDbWrapper {
104
104
}
105
105
}
106
106
107
- void EraseColumn (ui32 index, const TPortionInfo& portion, const TColumnRecord& row) override {
108
- auto & data = Indices[index ].Columns [portion.GetPathId ()];
107
+ void EraseColumn (const TPortionInfo& portion, const TColumnRecord& row) override {
108
+ auto & data = Indices[0 ].Columns [portion.GetPathId ()];
109
109
auto it = data.find (portion.GetPortion ());
110
110
Y_ABORT_UNLESS (it != data.end ());
111
111
auto & portionLocal = it->second ;
@@ -119,8 +119,8 @@ class TTestDbWrapper : public IDbWrapper {
119
119
portionLocal.Records .swap (filtered);
120
120
}
121
121
122
- bool LoadColumns (ui32 index, const std::function<void (const TPortionInfo&, const TColumnChunkLoadContext&)>& callback) override {
123
- auto & columns = Indices[index ].Columns ;
122
+ bool LoadColumns (const std::function<void (const TPortionInfo&, const TColumnChunkLoadContext&)>& callback) override {
123
+ auto & columns = Indices[0 ].Columns ;
124
124
for (auto & [pathId, portions] : columns) {
125
125
for (auto & [portionId, portionLocal] : portions) {
126
126
auto copy = portionLocal;
@@ -137,13 +137,13 @@ class TTestDbWrapper : public IDbWrapper {
137
137
return true ;
138
138
}
139
139
140
- void WriteCounter (ui32 index, ui32 counterId, ui64 value) override {
141
- auto & counters = Indices[index ].Counters ;
140
+ void WriteCounter (ui32 counterId, ui64 value) override {
141
+ auto & counters = Indices[0 ].Counters ;
142
142
counters[counterId] = value;
143
143
}
144
144
145
- bool LoadCounters (ui32 index, const std::function<void (ui32 id, ui64 value)>& callback) override {
146
- auto & counters = Indices[index ].Counters ;
145
+ bool LoadCounters (const std::function<void (ui32 id, ui64 value)>& callback) override {
146
+ auto & counters = Indices[0 ].Counters ;
147
147
for (auto & [id, value] : counters) {
148
148
callback (id, value);
149
149
}
0 commit comments