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

Method LoadList

cpp/src/arrow/ipc/reader.cc:364–377  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

362
363 template <typename TYPE>
364 Status LoadList(const TYPE& type) {
365 DCHECK_NE(out_, nullptr);
366 out_->buffers.resize(2);
367
368 RETURN_NOT_OK(LoadCommon(type.id()));
369 RETURN_NOT_OK(GetBuffer(buffer_index_++, &out_->buffers[1]));
370
371 const int num_children = type.num_fields();
372 if (num_children != 1) {
373 return Status::Invalid("Wrong number of children: ", num_children);
374 }
375
376 return LoadChildren(type.fields());
377 }
378
379 template <typename TYPE>
380 Status LoadListView(const TYPE& type) {

Callers

nothing calls this directly

Calls 6

GetBufferFunction · 0.85
resizeMethod · 0.80
InvalidFunction · 0.50
idMethod · 0.45
num_fieldsMethod · 0.45
fieldsMethod · 0.45

Tested by

no test coverage detected