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

Method InflightQueryIdsHandler

be/src/service/impala-http-handler.cc:416–427  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

414}
415
416void ImpalaHttpHandler::InflightQueryIdsHandler(const Webserver::WebRequest& req,
417 Document* document) {
418 stringstream ss;
419 server_->query_driver_map_.DoFuncForAllEntries(
420 [&](const std::shared_ptr<QueryDriver>& query_driver) {
421 ss << PrintId(query_driver->GetActiveClientRequestState()->query_id()) << "\n";
422 });
423 document->AddMember(rapidjson::StringRef(Webserver::ENABLE_RAW_HTML_KEY), true,
424 document->GetAllocator());
425 Value query_ids(ss.str(), document->GetAllocator());
426 document->AddMember("contents", query_ids, document->GetAllocator());
427}
428
429void ImpalaHttpHandler::QueryMemoryHandler(const Webserver::WebRequest& req,
430 Document* document) {

Callers

nothing calls this directly

Calls 6

PrintIdFunction · 0.85
DoFuncForAllEntriesMethod · 0.80
query_idMethod · 0.45
AddMemberMethod · 0.45
strMethod · 0.45

Tested by

no test coverage detected