aboutsummaryrefslogtreecommitdiffstats
path: root/ydb/library/yql/providers/dq/provider/yql_dq_control.h
blob: d47a42f4d8543716c20360fd0a59f06670a4ff2d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
#pragma once

#include <util/generic/ptr.h>
#include <util/generic/map.h>

#include <ydb/library/yql/core/file_storage/file_storage.h> 

namespace NYql {

namespace NProto {
class TDqConfig;
}

class IDqControl : public TThrRefBase {
public:
    using TPtr = TIntrusivePtr<IDqControl>;

    virtual bool IsReady(const TMap<TString, TString>& udfs = TMap<TString, TString>())= 0;
};

using IDqControlPtr = TIntrusivePtr<IDqControl>;

class IDqControlFactory : public TThrRefBase {
public:
    using TPtr = TIntrusivePtr<IDqControlFactory>;

    virtual IDqControlPtr GetControl() = 0;
    virtual const THashSet<TString>& GetIndexedUdfFilter() = 0;
    virtual bool StripEnabled() const = 0;
};

using IDqControlFactoryPtr = TIntrusivePtr<IDqControlFactory>;

IDqControlFactoryPtr CreateDqControlFactory(const NProto::TDqConfig& config, const TMap<TString, TString>& udfs, const TFileStoragePtr& fileStorage);

extern const TString DqStrippedSuffied;

} // namespace NYql