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

Method PrintChildren

cpp/src/arrow/pretty_print.cc:212–231  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

210 Status WriteValidityBitmap(const Array& array);
211
212 Status PrintChildren(const std::vector<const Array*>& fields, int64_t offset,
213 int64_t length) {
214 for (size_t i = 0; i < fields.size(); ++i) {
215 Write("\n"); // Always want newline before child array description
216 Indent();
217 std::stringstream ss;
218 ss << "-- child " << i << " type: " << fields[i]->type()->ToString() << "\n";
219 Write(ss.str());
220
221 // Indent();
222 const Array* field = fields[i];
223 if (offset != 0) {
224 RETURN_NOT_OK(
225 PrettyPrint(*field->Slice(offset, length), ChildOptions(true), sink_));
226 } else {
227 RETURN_NOT_OK(PrettyPrint(*field, ChildOptions(true), sink_));
228 }
229 }
230 return Status::OK();
231 }
232
233 //
234 // WriteDataValues(): generic function to write values from an array

Callers

nothing calls this directly

Calls 8

WriteFunction · 0.85
strMethod · 0.80
PrettyPrintFunction · 0.70
OKFunction · 0.70
sizeMethod · 0.45
ToStringMethod · 0.45
typeMethod · 0.45
SliceMethod · 0.45

Tested by

no test coverage detected