Skip to content

Commit

Permalink
Refactor HiveConfig
Browse files Browse the repository at this point in the history
  • Loading branch information
kewang1024 committed Nov 27, 2023
1 parent ea28f35 commit ff5a163
Show file tree
Hide file tree
Showing 21 changed files with 722 additions and 324 deletions.
16 changes: 7 additions & 9 deletions velox/connectors/Connector.h
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ class ConnectorQueryCtx {
ConnectorQueryCtx(
memory::MemoryPool* operatorPool,
memory::MemoryPool* connectorPool,
const Config* connectorConfig,
const Config* connectorSession,
const common::SpillConfig* spillConfig,
std::unique_ptr<core::ExpressionEvaluator> expressionEvaluator,
cache::AsyncDataCache* cache,
Expand All @@ -247,7 +247,7 @@ class ConnectorQueryCtx {
int driverId)
: operatorPool_(operatorPool),
connectorPool_(connectorPool),
config_(connectorConfig),
connectorSession_(connectorSession),
spillConfig_(spillConfig),
expressionEvaluator_(std::move(expressionEvaluator)),
cache_(cache),
Expand All @@ -256,7 +256,7 @@ class ConnectorQueryCtx {
taskId_(taskId),
driverId_(driverId),
planNodeId_(planNodeId) {
VELOX_CHECK_NOT_NULL(connectorConfig);
VELOX_CHECK_NOT_NULL(connectorSession);
}

/// Returns the associated operator's memory pool which is a leaf kind of
Expand All @@ -272,8 +272,8 @@ class ConnectorQueryCtx {
return connectorPool_;
}

const Config* config() const {
return config_;
const Config* connectorSession() const {
return connectorSession_;
}

const common::SpillConfig* spillConfig() const {
Expand Down Expand Up @@ -315,7 +315,7 @@ class ConnectorQueryCtx {
private:
memory::MemoryPool* const operatorPool_;
memory::MemoryPool* const connectorPool_;
const Config* config_;
const Config* connectorSession_;
const common::SpillConfig* const spillConfig_;
std::unique_ptr<core::ExpressionEvaluator> expressionEvaluator_;
cache::AsyncDataCache* cache_;
Expand All @@ -328,9 +328,7 @@ class ConnectorQueryCtx {

class Connector {
public:
explicit Connector(
const std::string& id)
: id_(id) {}
explicit Connector(const std::string& id) : id_(id) {}

virtual ~Connector() = default;

Expand Down
Loading

0 comments on commit ff5a163

Please sign in to comment.