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

Method ComputeFingerprint

cpp/src/arrow/type.cc:2810–2826  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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