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

Method GetFieldMetadata

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

Source from the content-addressed store, hash-verified

286 }
287
288 Status GetFieldMetadata(int field_index, ArrayData* out) {
289 auto nodes = metadata_->nodes();
290 CHECK_FLATBUFFERS_NOT_NULL(nodes, "Table.nodes");
291 // pop off a field
292 if (field_index >= static_cast<int>(nodes->size())) {
293 return Status::Invalid("Ran out of field metadata, likely malformed");
294 }
295 const flatbuf::FieldNode* node = nodes->Get(field_index);
296
297 out->length = node->length();
298 out->null_count = node->null_count();
299 out->offset = 0;
300 return Status::OK();
301 }
302
303 Status LoadCommon(Type::type type_id, bool allow_validity_bitmap = true) {
304 DCHECK_NE(out_, nullptr);

Callers

nothing calls this directly

Calls 7

nodesMethod · 0.80
InvalidFunction · 0.50
OKFunction · 0.50
sizeMethod · 0.45
GetMethod · 0.45
lengthMethod · 0.45
null_countMethod · 0.45

Tested by

no test coverage detected