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

Method GetDebugAction

be/src/runtime/debug-options.cc:100–113  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

98}
99
100bool DebugOptions::GetDebugAction(
101 const string& action, TDebugAction::type* type, string* action_param) {
102 // Either "ACTION_TYPE" or "ACTION_TYPE@<integer value>".
103 vector<string> tokens = TokenizeDebugActionParams(action);
104 if (tokens.size() < 1 || tokens.size() > 2) return false;
105 if (tokens.size() == 2) *action_param = tokens[1];
106 for (auto& entry : _TDebugAction_VALUES_TO_NAMES) {
107 if (iequals(tokens[0], entry.second)) {
108 *type = static_cast<TDebugAction::type>(entry.first);
109 return true;
110 }
111 }
112 return false;
113}
114
115
116TDebugOptions DebugOptions::ToThrift() const {

Callers

nothing calls this directly

Calls 3

iequalsFunction · 0.85
sizeMethod · 0.45

Tested by

no test coverage detected