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

Method FInstanceStatsToJson

be/src/runtime/coordinator.cc:1907–1919  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1905}
1906
1907void Coordinator::FInstanceStatsToJson(Document* doc) {
1908 DCHECK(exec_rpcs_complete_.Load()) << "Exec() must be called first";
1909 Value states(kArrayType);
1910 {
1911 lock_guard<SpinLock> l(backend_states_init_lock_);
1912 for (BackendState* state : backend_states_) {
1913 Value val(kObjectType);
1914 state->InstanceStatsToJson(&val, doc);
1915 states.PushBack(val, doc->GetAllocator());
1916 }
1917 }
1918 doc->AddMember("backend_instances", states, doc->GetAllocator());
1919}
1920
1921const TQueryCtx& Coordinator::query_ctx() const {
1922 return exec_params_.query_exec_request().query_ctx;

Callers 1

Calls 4

InstanceStatsToJsonMethod · 0.80
PushBackMethod · 0.80
LoadMethod · 0.45
AddMemberMethod · 0.45

Tested by

no test coverage detected