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

Method BackendsToJson

be/src/runtime/coordinator.cc:1893–1905  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1891}
1892
1893void Coordinator::BackendsToJson(Document* doc) {
1894 DCHECK(exec_rpcs_complete_.Load()) << "Exec() must be called first";
1895 Value states(kArrayType);
1896 {
1897 lock_guard<SpinLock> l(backend_states_init_lock_);
1898 for (BackendState* state : backend_states_) {
1899 Value val(kObjectType);
1900 state->ToJson(&val, doc);
1901 states.PushBack(val, doc->GetAllocator());
1902 }
1903 }
1904 doc->AddMember("backend_states", states, doc->GetAllocator());
1905}
1906
1907void Coordinator::FInstanceStatsToJson(Document* doc) {
1908 DCHECK(exec_rpcs_complete_.Load()) << "Exec() must be called first";

Callers 1

QueryBackendsHandlerMethod · 0.80

Calls 4

PushBackMethod · 0.80
LoadMethod · 0.45
ToJsonMethod · 0.45
AddMemberMethod · 0.45

Tested by

no test coverage detected