MCPcopy Create free account
hub / github.com/apache/arrow / TypeIdFingerprint

Function TypeIdFingerprint

cpp/src/arrow/type.cc:2752–2759  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2750} // namespace detail
2751
2752static inline std::string TypeIdFingerprint(const DataType& type) {
2753 auto c = static_cast<int>(type.id()) + 'A';
2754 DCHECK_GE(c, 0);
2755 DCHECK_LT(c, 128); // Unlikely to happen any soon
2756 // Prefix with an unusual character in order to disambiguate
2757 std::string s{'@', static_cast<char>(c)};
2758 return s;
2759}
2760
2761static char TimeUnitFingerprint(TimeUnit::type unit) {
2762 switch (unit) {

Callers 1

ComputeFingerprintMethod · 0.85

Calls 1

idMethod · 0.45

Tested by

no test coverage detected