| 2755 | } // namespace detail |
| 2756 | |
| 2757 | static 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 | |
| 2766 | static char TimeUnitFingerprint(TimeUnit::type unit) { |
| 2767 | switch (unit) { |