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

Function Make

cpp/src/arrow/type.h:1451–1459  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1449 static constexpr int kInvalidChildId = -1;
1450
1451 static Result<std::shared_ptr<DataType>> Make(
1452 const FieldVector& fields, const std::vector<int8_t>& type_codes,
1453 UnionMode::type mode = UnionMode::SPARSE) {
1454 if (mode == UnionMode::SPARSE) {
1455 return sparse_union(fields, type_codes);
1456 } else {
1457 return dense_union(fields, type_codes);
1458 }
1459 }
1460
1461 DataTypeLayout layout() const override;
1462

Callers 15

TESTFunction · 0.70
TEST_FFunction · 0.70
RecordBatchToTensorFunction · 0.70
MakeMethod · 0.70
ArrayRangeEqualsStructFunction · 0.70
SliceMethod · 0.70
RemoveColumnMethod · 0.70
AddColumnMethod · 0.70
SetColumnMethod · 0.70
ReplaceSchemaMetadataMethod · 0.70
FlattenMethod · 0.70
MakeEmptyMethod · 0.70

Calls 2

sparse_unionFunction · 0.85
dense_unionFunction · 0.85

Tested by 15

TESTFunction · 0.56
TEST_FFunction · 0.56
TEST_FFunction · 0.56
TESTFunction · 0.56
TESTFunction · 0.56
SetUpMethod · 0.56
TEST_FFunction · 0.56
SetUpMethod · 0.56
TYPED_TEST_PFunction · 0.56
MakeSparseCOOIndexMethod · 0.56
MakeSparseTensorMethod · 0.56