MCPcopy Create free account
hub / github.com/apache/impala / CreateSink

Method CreateSink

be/src/exec/plan-root-sink.cc:40–49  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

38namespace impala {
39
40DataSink* PlanRootSinkConfig::CreateSink(RuntimeState* state) const {
41 TDataSinkId sink_id = state->fragment().idx;
42 ObjectPool* pool = state->obj_pool();
43 if (state->query_options().spool_query_results) {
44 return pool->Add(new BufferedPlanRootSink(
45 sink_id, *this, state, state->instance_ctx().debug_options));
46 } else {
47 return pool->Add(new BlockingPlanRootSink(sink_id, *this, state));
48 }
49}
50
51PlanRootSink::PlanRootSink(
52 TDataSinkId sink_id, const DataSinkConfig& sink_config, RuntimeState* state)

Callers 2

PrepareMethod · 0.45
PrepareMethod · 0.45

Calls 2

obj_poolMethod · 0.45
AddMethod · 0.45

Tested by

no test coverage detected