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

Function EncodeInt

be/src/util/cache/cache-test.h:21–25  ·  view source on GitHub ↗

Conversions between numeric keys/values and the types expected by Cache.

Source from the content-addressed store, hash-verified

19
20// Conversions between numeric keys/values and the types expected by Cache.
21static std::string EncodeInt(int k) {
22 kudu::faststring result;
23 kudu::PutFixed32(&result, k);
24 return result.ToString();
25}
26static int DecodeInt(const Slice& k) {
27 CHECK_EQ(4, k.size());
28 return kudu::DecodeFixed32(k.data());

Callers 6

TEST_FFunction · 0.70
LookupMethod · 0.70
UpdateChargeMethod · 0.70
InsertMethod · 0.70
EraseMethod · 0.70
TEST_PFunction · 0.70

Calls 2

PutFixed32Function · 0.85
ToStringMethod · 0.45

Tested by

no test coverage detected