Skip to content

Commit 1bd051d

Browse files
committed
fixup
1 parent 6921e8b commit 1bd051d

File tree

4 files changed

+23
-20
lines changed

4 files changed

+23
-20
lines changed

ydb/library/yql/dq/actors/spilling/compute_storage.cpp

+17-17
Original file line numberDiff line numberDiff line change
@@ -4,32 +4,32 @@ namespace NYql::NDq {
44

55
using namespace NActors;
66

7-
TDqComputeStorage::TDqComputeStorage(TTxId txId, std::function<void()> wakeUpCallback, TActorSystem* actorSystem)
8-
: ActorSystem_(actorSystem)
7+
TDqComputeStorage::TDqComputeStorage(TTxId txId, std::function<void()> wakeUpCallback, TActorSystem* actorSystem) : ActorSystem_(actorSystem)
98
{
109
TStringStream spillerName;
1110
spillerName << "Spiller" << "_" << static_cast<const void*>(this);
1211
ComputeStorageActor_ = CreateDqComputeStorageActor(txId, spillerName.Str(), wakeUpCallback);
1312
ComputeStorageActorId_ = ActorSystem_->Register(ComputeStorageActor_->GetActor());
1413
}
1514

16-
TDqComputeStorage::~TDqComputeStorage() {
17-
ActorSystem_->Send(ComputeStorageActorId_, new TEvents::TEvPoison);
18-
}
15+
TDqComputeStorage::~TDqComputeStorage() {
16+
ActorSystem_->Send(ComputeStorageActorId_, new TEvents::TEvPoison);
17+
}
18+
19+
NThreading::TFuture<NKikimr::NMiniKQL::ISpiller::TKey> TDqComputeStorage::Put(TRope&& blob) {
20+
return ComputeStorageActor_->Put(std::move(blob));
21+
}
1922

20-
NThreading::TFuture<NKikimr::NMiniKQL::ISpiller::TKey> TDqComputeStorage::Put(TRope&& blob) {
21-
return ComputeStorageActor_->Put(std::move(blob));
22-
}
23+
std::optional<NThreading::TFuture<TRope>> TDqComputeStorage::Get(TKey key) {
24+
return ComputeStorageActor_->Get(key);
25+
}
2326

24-
std::optional<NThreading::TFuture<TRope>> TDqComputeStorage::Get(TKey key) {
25-
return ComputeStorageActor_->Get(key);
26-
}
27+
NThreading::TFuture<void> TDqComputeStorage::Delete(TKey key) {
28+
return ComputeStorageActor_->Delete(key);
29+
}
2730

28-
NThreading::TFuture<void> TDqComputeStorage::Delete(TKey key) {
29-
return ComputeStorageActor_->Delete(key);
30-
}
31+
std::optional<NThreading::TFuture<TRope>> TDqComputeStorage::Extract(TKey key) {
32+
return ComputeStorageActor_->Extract(key);
33+
}
3134

32-
std::optional<NThreading::TFuture<TRope>> TDqComputeStorage::Extract(TKey key) {
33-
return ComputeStorageActor_->Extract(key);
34-
}
3535
} // namespace NYql::NDq

ydb/library/yql/dq/actors/spilling/spiller_factory.h

+2-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@ namespace NYql::NDq {
88

99
using namespace NActors;
1010

11-
class TDqSpillerFactory : public NKikimr::NMiniKQL::ISpillerFactory {
11+
class TDqSpillerFactory : public NKikimr::NMiniKQL::ISpillerFactory
12+
{
1213
public:
1314
TDqSpillerFactory(TTxId txId, TActorSystem* actorSystem, std::function<void()> wakeUpCallback)
1415
: ActorSystem_(actorSystem),

ydb/library/yql/minikql/computation/mkql_spiller.h

+2-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@
55

66
namespace NKikimr::NMiniKQL {
77

8-
struct ISpiller {
8+
struct ISpiller
9+
{
910
using TPtr = std::shared_ptr<ISpiller>;
1011
virtual ~ISpiller(){}
1112
using TKey = ui64;

ydb/library/yql/minikql/computation/mkql_spiller_factory.h

+2-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@
44

55
namespace NKikimr::NMiniKQL {
66

7-
class ISpillerFactory : private TNonCopyable {
7+
class ISpillerFactory : private TNonCopyable
8+
{
89
public:
910
virtual ISpiller::TPtr CreateSpiller() = 0;
1011

0 commit comments

Comments
 (0)