-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathdistributed_create_index.hpp
More file actions
34 lines (26 loc) · 1.1 KB
/
Copy pathdistributed_create_index.hpp
File metadata and controls
34 lines (26 loc) · 1.1 KB
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
// Physical operation to create index on remote tables.
#pragma once
#include "duckdb/catalog/catalog_entry/schema_catalog_entry.hpp"
#include "duckdb/catalog/catalog_entry/table_catalog_entry.hpp"
#include "duckdb/execution/physical_operator.hpp"
#include "duckdb/parser/parsed_data/create_index_info.hpp"
namespace duckdb {
class PhysicalRemoteCreateIndexOperator : public PhysicalOperator {
public:
PhysicalRemoteCreateIndexOperator(PhysicalPlan &physical_plan, unique_ptr<CreateIndexInfo> info_p,
string catalog_name_p, string schema_name_p, string table_name_p,
idx_t estimated_cardinality);
unique_ptr<CreateIndexInfo> info;
string catalog_name;
string schema_name;
string table_name;
public:
// Source interface.
unique_ptr<GlobalSourceState> GetGlobalSourceState(ClientContext &context) const override;
SourceResultType GetDataInternal(ExecutionContext &context, DataChunk &chunk,
OperatorSourceInput &input) const override;
bool IsSource() const override {
return true;
}
};
} // namespace duckdb