MCPcopy Create free account
hub / github.com/apache/kudu / ExtractInt64

Method ExtractInt64

src/kudu/util/jsonreader.cc:117–129  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

115}
116
117Status JsonReader::ExtractInt64(const Value* object,
118 const char* field,
119 int64_t* result) const {
120 const Value* val;
121 RETURN_NOT_OK(ExtractField(object, field, &val));
122 if (PREDICT_FALSE(!val->IsInt64())) {
123 return Status::InvalidArgument(Substitute(
124 "wrong type during field extraction: expected int64 but got $0",
125 TypeToString(val->GetType())));
126 }
127 *result = val->GetInt64();
128 return Status::OK();
129}
130
131Status JsonReader::ExtractUint64(const Value* object,
132 const char* field,

Callers 8

GetInt64MetricFunction · 0.80
LocateRowFunction · 0.80
ConvertToKuduPartialRowFunction · 0.80
ParseValueOfTypeFunction · 0.80
TESTFunction · 0.80
TEST_FFunction · 0.80
CheckMergeOutputFunction · 0.80

Calls 6

InvalidArgumentFunction · 0.85
SubstituteFunction · 0.85
OKFunction · 0.85
GetTypeMethod · 0.80
TypeToStringFunction · 0.70
GetInt64Method · 0.45

Tested by 5

GetInt64MetricFunction · 0.64
TESTFunction · 0.64
TEST_FFunction · 0.64
CheckMergeOutputFunction · 0.64