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

Method ComputeFingerprint

cpp/src/arrow/type.cc:2815–2831  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2813}
2814
2815std::string Field::ComputeFingerprint() const {
2816 const auto& type_fingerprint = type_->fingerprint();
2817 if (type_fingerprint.empty()) {
2818 // Underlying DataType doesn't support fingerprinting.
2819 return "";
2820 }
2821 std::stringstream ss;
2822 ss << 'F';
2823 if (nullable_) {
2824 ss << 'n';
2825 } else {
2826 ss << 'N';
2827 }
2828 ss << name_;
2829 ss << '{' << type_fingerprint << '}';
2830 return ss.str();
2831}
2832
2833std::string Field::ComputeMetadataFingerprint() const {
2834 std::stringstream ss;

Callers

nothing calls this directly

Calls 15

endiannessFunction · 0.85
TypeIdFingerprintFunction · 0.85
key_typeFunction · 0.85
item_typeFunction · 0.85
item_fieldFunction · 0.85
run_end_typeFunction · 0.85
TimeUnitFingerprintFunction · 0.85
IntervalTypeFingerprintFunction · 0.85
interval_typeFunction · 0.85
strMethod · 0.80
nullableMethod · 0.80
fieldsFunction · 0.50

Tested by

no test coverage detected