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

Method MakeEmpty

cpp/src/arrow/chunked_array.cc:83–88  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

81}
82
83Result<std::shared_ptr<ChunkedArray>> ChunkedArray::MakeEmpty(
84 std::shared_ptr<DataType> type, MemoryPool* memory_pool) {
85 std::vector<std::shared_ptr<Array>> new_chunks(1);
86 ARROW_ASSIGN_OR_RAISE(new_chunks[0], MakeEmptyArray(std::move(type), memory_pool));
87 return std::make_shared<ChunkedArray>(std::move(new_chunks));
88}
89
90DeviceAllocationTypeSet ChunkedArray::device_types() const {
91 if (chunks_.empty()) {

Callers

nothing calls this directly

Calls 2

ARROW_ASSIGN_OR_RAISEFunction · 0.50
MakeEmptyArrayFunction · 0.50

Tested by

no test coverage detected