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

Method GetFieldMetadata

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

Source from the content-addressed store, hash-verified

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