@@ -714,8 +714,8 @@ void ExecSQL(Tests::TServer::TPtr server,
714
714
NKikimrDataEvents::TEvWriteResult Write (TTestActorRuntime& runtime, TActorId sender, ui64 shardId, std::unique_ptr<NEvents::TDataEvents::TEvWrite>&& request, NKikimrDataEvents::TEvWriteResult::EStatus expectedStatus = NKikimrDataEvents::TEvWriteResult::STATUS_UNSPECIFIED, NWilson::TTraceId traceId = {});
715
715
NKikimrDataEvents::TEvWriteResult Write (TTestActorRuntime& runtime, TActorId sender, ui64 shardId, ui64 tableId, const TVector<TShardedTableOptions::TColumn>& columns, ui32 rowCount, ui64 txId, NKikimrDataEvents::TEvWrite::ETxMode txMode, NKikimrDataEvents::TEvWriteResult::EStatus expectedStatus = NKikimrDataEvents::TEvWriteResult::STATUS_UNSPECIFIED, NWilson::TTraceId traceId = {});
716
716
717
- struct EvWriteRow {
718
- EvWriteRow (std::initializer_list<ui32> init) {
717
+ struct TEvWriteRow {
718
+ TEvWriteRow (std::initializer_list<ui32> init) {
719
719
for (ui32 value : init) {
720
720
Cells.emplace_back (TCell ((const char *)&value, sizeof (ui32)));
721
721
}
@@ -729,29 +729,29 @@ struct EvWriteRow {
729
729
Completed
730
730
} Status = Init;
731
731
};
732
- class EvWriteRows : public std ::vector<EvWriteRow > {
732
+ class TEvWriteRows : public std ::vector<TEvWriteRow > {
733
733
public:
734
- EvWriteRows () = default ;
735
- EvWriteRows (std::initializer_list<EvWriteRow > init) :
736
- std::vector<EvWriteRow >(init) { }
734
+ TEvWriteRows () = default ;
735
+ TEvWriteRows (std::initializer_list<TEvWriteRow > init) :
736
+ std::vector<TEvWriteRow >(init) { }
737
737
738
- const EvWriteRow & ProcessNextRow () {
739
- auto processedRow = std::find_if (begin (), end (), [](const auto & row) { return row.Status == EvWriteRow ::EStatus::Init; });
738
+ const TEvWriteRow & ProcessNextRow () {
739
+ auto processedRow = std::find_if (begin (), end (), [](const auto & row) { return row.Status == TEvWriteRow ::EStatus::Init; });
740
740
Y_VERIFY_S (processedRow != end (), " There should be at least one EvWrite row to process." );
741
- processedRow->Status = EvWriteRow ::EStatus::Processing;
741
+ processedRow->Status = TEvWriteRow ::EStatus::Processing;
742
742
Cerr << " Processing next EvWrite row\n " ;
743
743
return *processedRow;
744
744
}
745
745
void CompleteNextRow () {
746
- auto processedRow = std::find_if (begin (), end (), [](const auto & row) { return row.Status == EvWriteRow ::EStatus::Processing; });
746
+ auto processedRow = std::find_if (begin (), end (), [](const auto & row) { return row.Status == TEvWriteRow ::EStatus::Processing; });
747
747
Y_VERIFY_S (processedRow != end (), " There should be at lest one EvWrite row processing." );
748
- processedRow->Status = EvWriteRow ::EStatus::Completed;
748
+ processedRow->Status = TEvWriteRow ::EStatus::Completed;
749
749
Cerr << " Completed next EvWrite row\n " ;
750
750
}
751
751
};
752
752
753
- TTestActorRuntimeBase::TEventObserverHolder ReplaceEvProposeTransactionWithEvWrite (TTestActorRuntime& runtime, EvWriteRows & rows);
754
- TTestActorRuntimeBase::TEventObserverHolder ReplaceEvProposeTransactionResultWithEvWrite (TTestActorRuntime& runtime, EvWriteRows & rows);
753
+ TTestActorRuntimeBase::TEventObserverHolder ReplaceEvProposeTransactionWithEvWrite (TTestActorRuntime& runtime, TEvWriteRows & rows);
754
+ TTestActorRuntimeBase::TEventObserverHolder ReplaceEvProposeTransactionResultWithEvWrite (TTestActorRuntime& runtime, TEvWriteRows & rows);
755
755
756
756
void UploadRows (TTestActorRuntime& runtime, const TString& tablePath, const TVector<std::pair<TString, Ydb::Type_PrimitiveTypeId>>& types, const TVector<TCell>& keys, const TVector<TCell>& values);
757
757
0 commit comments