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

Function UuidToQueryId

be/src/util/uid-util.h:62–68  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

60constexpr int64_t FRAGMENT_IDX_MASK = (1L << 32) - 1;
61
62inline TUniqueId UuidToQueryId(const boost::uuids::uuid& uuid) {
63 TUniqueId result;
64 memcpy(&result.hi, &uuid.data[0], 8);
65 memcpy(&result.lo, &uuid.data[8], 8);
66 result.lo &= ~FRAGMENT_IDX_MASK; // zero out bottom 4 bytes
67 return result;
68}
69
70inline TUniqueId ProtoToQueryId(const UniqueIdPB& uid_pb) {
71 DCHECK(uid_pb.IsInitialized());

Callers 4

PrepareQueryContextMethod · 0.85
SenderMethod · 0.85
CreateQueryIdsFunction · 0.85
TESTFunction · 0.85

Calls

no outgoing calls

Tested by 2

SenderMethod · 0.68
TESTFunction · 0.68