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

Function TypeIdFingerprint

cpp/src/arrow/type.cc:2757–2764  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 1

ComputeFingerprintMethod · 0.85

Calls 1

idMethod · 0.45

Tested by

no test coverage detected