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

Method AddField

cpp/src/arrow/compute/kernels/vector_sort.cc:1071–1079  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1069 }
1070
1071 void AddField(const DataType& type, const FieldPath& path, SortOrder order,
1072 NullPlacement null_placement) {
1073 if (type.id() == Type::STRUCT) {
1074 tmp_indices_ = path.indices();
1075 AddLeafFields(type.fields(), order, null_placement);
1076 } else {
1077 sort_fields_.emplace_back(path, order, null_placement, &type);
1078 }
1079 }
1080
1081 std::vector<SortField> sort_fields_;
1082 std::unordered_set<FieldPath, FieldPath::Hash> seen_;

Callers

nothing calls this directly

Calls 4

indicesMethod · 0.80
emplace_backMethod · 0.80
idMethod · 0.45
fieldsMethod · 0.45

Tested by

no test coverage detected