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

Method HasDistinctFieldNames

cpp/src/arrow/type.cc:2445–2449  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2443}
2444
2445bool Schema::HasDistinctFieldNames() const {
2446 auto fields = field_names();
2447 std::unordered_set<std::string> names{fields.cbegin(), fields.cend()};
2448 return names.size() == fields.size();
2449}
2450
2451Result<std::shared_ptr<Schema>> Schema::WithNames(
2452 const std::vector<std::string>& names) const {

Callers 2

UnifySchemasFunction · 0.80
TEST_FFunction · 0.80

Calls 3

cbeginMethod · 0.80
cendMethod · 0.80
sizeMethod · 0.45

Tested by 1

TEST_FFunction · 0.64