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

Method GetInt64

be/src/util/process-state-info.cc:51–60  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

49}
50
51int64_t ProcessStateInfo::GetInt64(const string& state_key) const {
52 ProcessStateMap::const_iterator it = process_state_map_.find(state_key);
53 if (it != process_state_map_.end()) {
54 StringParser::ParseResult result;
55 int64_t state_value = StringParser::StringToInt<int64_t>(it->second.data(),
56 it->second.size(), &result);
57 if (result == StringParser::PARSE_SUCCESS) return state_value;
58 }
59 return -1;
60}
61
62string ProcessStateInfo::GetString(const string& state_key) const {
63 ProcessStateMap::const_iterator it = process_state_map_.find(state_key);

Callers 10

ProtobufFieldMethod · 0.80
TEST_FFunction · 0.80
ExtractInt64Method · 0.80
SessionCountComparerFunction · 0.80
JsonToTraceEventFunction · 0.80
ValidateMethod · 0.80
ProtobufToJsonFunction · 0.80

Calls 4

findMethod · 0.45
endMethod · 0.45
dataMethod · 0.45
sizeMethod · 0.45

Tested by 3

TEST_FFunction · 0.64
ValidateMethod · 0.64